Jump to content

Recommended Posts

Posted

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.

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
×
×
  • Create New...