August 18, 201115 yr Hi I am a newbee in WPII know WPI has make directory function. Is there a way for WPI to do the following batch.cmd command ?if not exist "%ALLUSERSPROFILE%\Start Menu\Programs\Winutil" mkdir "%ALLUSERSPROFILE%\Start Menu\Programs\Winutil"===================================Also in situation How can i do that using getOSver() function=="XP" install 32bit version of the program getOSver() function=="win7" install 64bit version of the program Please advice and thank you.
August 19, 201115 yr Conditions = get OSver=="XP"&{x86} "%wpipath%\Install\mseinstall.exe" /s /runwgacheck /oJust like so...
August 19, 201115 yr Author Thank you Kel for the info.As for dos command if not exist "%ALLUSERSPROFILE%\Start Menu\Programs\Winutil" mkdir "%ALLUSERSPROFILE%\Start Menu\Programs\Winutil"instead of using batch.cmdA user in this forum suggest this solution and it work well in WPI thanks.{JSCRIPT}=if (!FolderExists("%ProgramFiles(x86)%\misc\")) RunCmd('cmd /c mkdir "%ProgramFiles(x86)%\misc\"',false,true)
Create an account or sign in to comment