philo Posted July 2, 2005 Posted July 2, 2005 Hi Is there a way to make a script that search files.(ask for Path to the map) End it save's all the filenames into a text file. I need this because i need to put a lot off file names in Notepad document. Can someone help with this Thanks Auto It Ruels
Valuater Posted July 3, 2005 Posted July 3, 2005 This will do the trick........ $var = FileSelectFolder("Choose a folder.", "") If @error Then MsgBox(4096,"","No Folder chosen") Else RunWait(@ComSpec & ' /c ' & 'dir "' & $var & "\*.*" & '" /a :h /b ' & ' > "' & @TempDir & '\dir.txt"', '', @SW_HIDE) MsgBox(4096,"","You chose " & $var) EndIf Enjoy! 8)
philo Posted July 3, 2005 Author Posted July 3, 2005 But where is the Dir.txt file.(where is it created) can find it. Auto It Ruels
Valuater Posted July 3, 2005 Posted July 3, 2005 right where we put it run("notepad.exe " & @TempDir & "\dir.txt") 8)
philo Posted July 3, 2005 Author Posted July 3, 2005 (edited) Thanks got it Edited July 3, 2005 by philo Auto It Ruels
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