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
Operating System Not Found -- Windows 2000 server
Create single master image from different models of computer
insert image using openrowset
Silmulate keystrokes in bash script
Installing mySQL
Cannot launch web links from outlook 2003 email
Printout default value of unbound textbox
Auto add SBS 2003 add e-mail aliases ( ? using VBScript ? )
Remote Desktop Clients Cannot Access Their Local Printers unless they are in Domain\Admin Group
Access Bar Chart Colors...