peterxcollins
09-10-2003, 11:04 PM
in win xp if i go to a dos box ( via run , cmd ) and type at the cmd prompt,
echo Hello & dir & echo hello again
I get
H:\tmp>
H:\tmp>echo Hello & dir & echo hello again
Hello
Volume in drive H is Homedirs
Volume Serial Number is E4A4-69C6
Directory of H:\tmp
11/09/2003 01:59 PM <DIR> .
11/09/2003 01:59 PM <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 8,605,827,072 bytes free
hello again
which id the expected output.
But if i put the same command in Progam/command VB pro gives
Failed to create process: The system cannot find the file specified.
Should not i get the same output as from the dos command line - or how do i enter multiple dos commands in the one command box , without piping
echo Hello & dir & echo hello again
I get
H:\tmp>
H:\tmp>echo Hello & dir & echo hello again
Hello
Volume in drive H is Homedirs
Volume Serial Number is E4A4-69C6
Directory of H:\tmp
11/09/2003 01:59 PM <DIR> .
11/09/2003 01:59 PM <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 8,605,827,072 bytes free
hello again
which id the expected output.
But if i put the same command in Progam/command VB pro gives
Failed to create process: The system cannot find the file specified.
Should not i get the same output as from the dos command line - or how do i enter multiple dos commands in the one command box , without piping