Multi Commander > Script
Look for script
(1/1)
Mathias (Author):
I know many of you are write scripts.
I'm look for nice generic script that you think should be included in a standard installation of MultiCommander.
Both as fully functional and as examples..
Tips of scripts and/or full script are wanted.
Stéphane P.:
Hello,
Some examples to show the different possibilities.
System Variable
--- Code: ---@var $env = TranslateEnvString("%COMPUTERNAME%");
SetClipboardText( $env);
MessageBox( "Env Var", $env,0);
--- End code ---
Run system executable
--- Code: ---MC.Run CMD={"c:\windows\System32\shutdown.exe /r /f /t 0"}
--- End code ---
Read File and Put Content to the clipboard
--- Code: ---@var $content = LoadStringFromFile( '\\10.69.0.200\CounterString_1000.txt' );
SetClipboardText( $content );
--- End code ---
Create folder with the date of the day
--- Code: ---@var $now = GetTime();
@var $date = FormatDate( "dd-dddd" , $now );
@var $folder;
@var $FolderBaseName = GetSourcePath();
{
$folder = $FolderBaseName ^ $date;
MC.Filesystem.Makedir PATH="{$folder}"
}
--- End code ---
ReneMiner:
i don"t get the script together myself but described how to mount the registry from a currently offline windows installation to fix and repair it or to change settings that prevent the other installation from successful boot.
http://forum.multicommander.com/forum/index.php/topic,4179.msg11897.html#msg11897
Navigation
[0] Message Index
Go to full version