Jump to content
tinman_72

Paste a specific file to current folder.

Recommended Posts

tinman_72

I have been teaching myself AutoIt scripting for a while now and everytime I come up with a project I am amazed at what I am able to accomplish with it. However, I seem to have run into a brick wall.

I have a template Excel file that I would like to be able paste into any explorer window without having to navigate to the template to start the copy. I figured the easiest way to accomplish this would be to have a script that copies the template source path to the clipboard, then I can just CTRL-V and the file will copy.

The only AutoIt command that I can find for manipulating the clipboard is ClipPut, but that only enters text into it. Is there a way to manipulate the clipboard as previously described? Or is there a simpler way whether it involves AutoIt or not?

Share this post


Link to post
Share on other sites
water

Welcome to AutoIt and the forum!

Why not just use FileCopy?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
tinman_72

FileCopy works great. I didn't realize that the title of the window is the path so it actually made the script very short.

Thanks guys.

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

×

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.