Jump to content
Sign in to follow this  
philo

File Name Store

Recommended Posts

philo

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
Valuater

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
philo

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
Valuater

right where we put it

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

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
philo

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.