Re: Using shellexecute......
- From: John Morley <jmorley@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 17 Oct 2005 18:06:12 -0400
Hi Rick,
This problem is really weird! I tried using a CMD window to test the command string, and it does work to an extent. The problem is that the file pointed to by the argument following the executable is never found! If I put them in the same directory, and don't need to give the full path names it works just fine, but the long path names seems to cause the DOS executable to barf :-(!! The problem with the .bat file approach is I want the DOS argument to be a runtime variable. I guess I could copy the requested file to a temporary file, execute the DOS program and then kill the temporary file......... Egads, it is no wonder that DOS has died on the vine..........
Thanks!!
John
Rick Rothstein [MVP - Visual Basic] wrote:
C: CD "\Docs\VB Projects\WinHost\WinHost Code" compile.exe ".\Events Files\events.hcs" > ".\Events Files\outfile.dat"
On my newsreader, the last line I posted got split into two lines. The last two lines above should be on a single line in your BAT file (with a space between the "Events" and "Files" words. Also, I forgot to mention that the extension of your BAT file should be .bat even though it is a text file.
Rick
.
- Follow-Ups:
- Re: Using shellexecute......
- From: J French
- Re: Using shellexecute......
- References:
- Re: Using shellexecute......
- From: Randy Birch
- Re: Using shellexecute......
- From: Bob Butler
- Re: Using shellexecute......
- From: John Morley
- Re: Using shellexecute......
- From: Randy Birch
- Re: Using shellexecute......
- From: John Morley
- Re: Using shellexecute......
- From: Rick Rothstein [MVP - Visual Basic]
- Re: Using shellexecute......
- From: Rick Rothstein [MVP - Visual Basic]
- Re: Using shellexecute......
- Prev by Date: Re: Stopping an Event
- Next by Date: Re: One thing I noticed
- Previous by thread: Re: Using shellexecute......
- Next by thread: Re: Using shellexecute......
- Index(es):
Relevant Pages
|