Sign in to follow this  
Followers 0
philo

File Name Store

5 posts in this topic

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

Share this post


Link to post
Share on other sites



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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

But where is the Dir.txt file.(where is it created)

can find it.


Auto It Ruels

Share this post


Link to post
Share on other sites

right where we put it

run("notepad.exe " & @TempDir & "\dir.txt")

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Thanks got it

Edited by philo

Auto It Ruels

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0