Lenix Posted September 24, 2009 Share Posted September 24, 2009 Hi. Im fairly new to Autoit. Writen some small scripts in the past, but notging advanced. And now im stuck on this one. What i need help with is: I want a script that does a dir in a folder, lets say C:\test and gives me the name of the first file in that folder, preferd in my Clipboard or writes it to a string so i can use it later in my script. Example: My script gets executed, it dir's C:\test, finds that C:\test contanins test1.txt and test2.txt and gives me test1.txt in my Clipboard. How the file name gets in my clipboard doesnt rly matter, as long as my script returns a filename in my clipboard when executed. Link to comment Share on other sites More sharing options...
jvanegmond Posted September 24, 2009 Share Posted September 24, 2009 These functions should do it: FileFindFirstFile FileFindNextFile ClipPut In that order. You can do this in 3 lines. : ) github.com/jvanegmond Link to comment Share on other sites More sharing options...
Lenix Posted September 24, 2009 Author Share Posted September 24, 2009 Cool=D Cheers for helping out man;) Link to comment Share on other sites More sharing options...
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