Philippe Posted May 12, 2005 Posted May 12, 2005 Hello ! I want to write a list of directories and files, with size, date, ... in a text file. ... with AutoIt, of course. This exemple doesn't do it, but write the return code of the DIR : $message = RunWait(@COMSPEC & " /c Dir C:\assos /O-S") FileOpen ("file.txt", 1) FileWriteLine("file.txt", $message)
sandyd Posted May 12, 2005 Posted May 12, 2005 (edited) RunWait(@COMSPEC & " /c Dir C:\assos /O-S > c:\file.txt")Add the text in RED aboveThe diretcory listing is now in the file c:\File.txt Edited May 12, 2005 by sandyd ----[ SandyD ]---
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now