Jump to content

Recommended Posts

Posted

Hi I am a newbee in WPI

I 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.


Posted

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.cmd

A 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)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...