Shell Command Doesn't Create TXT file as expected
- From: "Andibevan" <Andibevan@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 6 Sep 2005 17:20:08 +0100
Hi All,
I am having problems using the shell command to write the output of a dos
command to a text file.
I would be really grateful if someone could tell me why this doesn't produce
the required Test.txt file?
Sub Test
Shell ("dir >C:\test.txt")
End sub
I get the error "File Not Found"
What is the correct syntax to write a dos command to a file using Shell?
Thanks
Andy
.
- Follow-Ups:
- Re: Shell Command Doesn't Create TXT file as expected
- From: Bob Butler
- Re: Shell Command Doesn't Create TXT file as expected
- From: Duane Bozarth
- Re: Shell Command Doesn't Create TXT file as expected
- Prev by Date: Re: out of date of dependency file of scrrun.dll
- Next by Date: Re: Updating a database
- Previous by thread: out of date of dependency file of scrrun.dll
- Next by thread: Re: Shell Command Doesn't Create TXT file as expected
- Index(es):
Relevant Pages
|