Microsoft
Software
Hardware
Network
Question : Redirection in batch file
For example
The command line dir>mydir.txt works fine but if i put exactly the same line in a batch file (because I want to use variables like %1) it will work but display a strange output:
ie. "dir 1>mydir.txt"
(and dir
mydir.txt")
and dir>>mydir.txt will be ok,
Answer : Redirection in batch file
Thats fine. > is effectively 1> but when you add a parameter like %1 then dir %1>mydir.txt will become dir % 1>mydir.txt so what you want is dir %1 >mydir.txt !
Steve
Random Solutions
SQL statement for displaying one record each out of multiple records
List folders from Windows Explorer in a word document
What does the "shutdown" command do if updates are waiting?
IIS 5.0 with NT Auth enables give Access Denied
Can't seem to add in Google Analytics to webmaster account
Excel sorting query (data in multiple rows and columns)
Get Cell Address from Max function
SQL server problem when installing new instance
How do I "View History" in Internet Explorer
Anybody familiar with Cyber Phrases?