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
Getting a hosts name or IP in an Apache environment variable
How to change Document Ownership in SharePoint
Convert .FLA file to a .FLV file
eFaxMessenger
how to concatenate into the starting of a file ?
SMS_Inventory_Data_Loader
Replace string in Access Table
missing files after chkdsk!!!!!!!!!!!!
Windows Repair in Windows Vista
Cross-Browser time/date javascript