thread184-1638430
Regarding the use of ShellExecute, to run an internal Windows (DOS) command like rmdir, dir, mklink use these options
Example: make a symbolic link folder named "Linkedfolder" which refers to the network path \\server2\wip
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
hndWin = 0 &&this seems to be the only option to use
cFileName = "cmd.exe"
cAction = "open"
cParams = [/k mklink /D "Linkedfolder" "\\server2\wip"]
cDir = ""
nShowWin = 1 &&use 0 to hide the DOS window
ln_result = ShellExecute(hndWin,cAction,cFileName,cParams,cDir,nShowWin)
if ln_result >= 32
wait window "Success" timeout 4
ENDIF
Regarding the use of ShellExecute, to run an internal Windows (DOS) command like rmdir, dir, mklink use these options
Example: make a symbolic link folder named "Linkedfolder" which refers to the network path \\server2\wip
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
hndWin = 0 &&this seems to be the only option to use
cFileName = "cmd.exe"
cAction = "open"
cParams = [/k mklink /D "Linkedfolder" "\\server2\wip"]
cDir = ""
nShowWin = 1 &&use 0 to hide the DOS window
ln_result = ShellExecute(hndWin,cAction,cFileName,cParams,cDir,nShowWin)
if ln_result >= 32
wait window "Success" timeout 4
ENDIF