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)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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