General information
Category:
Coding, syntax & commands
Title:
Run dos program and wait.
I have the need to fire off a DOS program but I need know when it finishes. If I use the below code, the program kicks off just fine but it is in no wait mode so I have no idea when it finishes. If I remove the /N from the RUN statement in hopes that the FoxPro program with wait, the program crashes. Does anyone have any idea how I can make FoxPro wait for the DOS program? The help says something about .pif files but I do not know how to create or use these either.
SLIMCOMMANDLINE = 'SLIMBATCH ' + '/IMPORT=("' + m.assettextfilename ;
+ '","' + m.assetsisfilename + '")' ;
+ ' /IMPORT=("' + m.transtextfilename + '","'
+ m.transsisfilename + '")' ;
+ ' /TRUVP=("' + m.exportfilename + '")'
RUN /N &SLIMCOMMANDLINE
** Please and thank you in advance.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only