swpruncmd() and winXP
Hi
I am using swpruncmd for the first time.Till now I used run command as
follows
I ran my prog like
e:\info4\myprog.exe
in the program I have
cPDataDir := "\info4\06\pt06"
cChgdir := "cd"+cPDataDir
run (cChgDir)
? FT_DEFAULT() + ":\" + CURDIR() + "\" // new path ->
e:\info4\06\pt06\
instead of above I changed my prog as follows
e:\info4\myprog.exe
Success := swpruncmd(cChgDir)
IF (!success)
? "Swap failed"
majerr = SWPERRMAJ()
minerr = SWPERRMIN()
? "Error codes :", majerr, minerr
clear all
clos all
quit
ELSE
? "Swap succeeded"
? "Errorlevel :", SWPERRLEV()
? FT_DEFAULT() + ":\" + CURDIR() + "\" // new path ->
e:\info4\
ENDIF
after running above I got
"Swap succeeded"
"Errorleve : 0"
but the path remaind at e:\info4\
Pls advice what mistake I am commiting
my os is w98
secondly I am planning to moving to winXP.I have heard it does not have
dos-prompt
facility.If it is so how do we compile and run applications compiled in
clipper ?
TIA
Rajeev Chavan
|