Jump to content
Sign in to follow this  

Could someone help me out with this one?

Recommended Posts



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.

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.