mirror of
https://github.com/modmii/modmii.github.io.git
synced 2024-11-14 04:15:14 +01:00
11 lines
506 B
AutoIt
11 lines
506 B
AutoIt
|
;Small autoit script by person66 to make ModMii.bat open with an icon
|
||
|
If FileExists( @WorkingDir & "\Support\ModMii.lnk") Then FileDelete( @WorkingDir & "\Support\ModMii.lnk")
|
||
|
;Get arguments
|
||
|
$args = ""
|
||
|
$i = 1
|
||
|
while $i <= $CmdLine[0]
|
||
|
$args = $args & $CmdLine[$i] & " "
|
||
|
$i = $i + 1
|
||
|
wend
|
||
|
FileCreateShortcut( @WorkingDir & "\Support\ModMii.bat", @WorkingDir & "\Support\ModMii.lnk", @WorkingDir, $args, "", @WorkingDir & "\Support\icon.ico" )
|
||
|
ShellExecute(@WorkingDir & "\Support\ModMii.lnk")
|