Thanks to Martin Higham, 

For those interested, the answer to my problem was to use

"cmd.exe /c " instead of "command.com /c "

Regards

Peter Doyle
Geographical Analysis & Data
Coverage Delivery
Telstra, Mobile Network Services
ph: 07 38871128
fax: 07 32364383
Level 4
171 Roma Street Brisbane 4000
[EMAIL PROTECTED]



> -----Original Message-----
> From: Doyle, Peter W [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 18 February 2004 13:47
> To: [EMAIL PROTECTED]
> Subject: MI-L "Run Program" command under XP
>
>
> Greetings list,
>
> I am having trouble using the "Run Program" command in mapbasic
> under windows XP
>
> When I run the following batch file (Junk.bat)  from the windows
> XP command prompt, I get the required result (eg: a listing of
> all tab files in a directory)
>
> Contents of Junk.bat
> dir d:\mapbasic\victanyamap\*.tab /s/b > t_list.txt
>
> When I try and run this same batch file from within my mapbasic
> code using the following command
>
> Run Program "Command.com /c " + ApplicationDirectory$() +
> "Junk.bat" (junk.bat is in the same directory as my mbx)
>
> I get an error in the windows command shell saying "Path not found"
> Although the file t_list.txt is created in the application
> directory, but is empty
>
> Does it have something to do with Mapinfo expecting the old
> windows 8.3 filenames?? or is my syntax incorrect?
>
> Any help appreciated
>
>
> Regards
>
> Peter Doyle
> Geographical Analysis & Data
> Coverage Delivery
> Telstra, Mobile Network Services
> ph: 07 38871128
> fax: 07 32364383
> Level 4
> 171 Roma Street Brisbane 4000
> [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> List hosting provided by Directions Magazine | www.directionsmag.com |
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> Message number: 10494
>


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 10496

Reply via email to