zYx Posted January 8, 2018 Share Posted January 8, 2018 (edited) Hi all, How can I copy a specific folder from a location A, get a prompt for a name for the new folder and paste the new folder in the same location where the shortcut is ran from. i.e.: Location A is: C:\Folder1\SubFolders\Files Location of the script executable: C:\AutoIT\addFolder.exe - so that I can keep it up to date etc. Destination: D:\DestinationA, D:\DestinationB, D:\DestinationC or wherever I place the shortcut to C:\AutoIT\addFolder.exe What I want is for a user to double click on a shortcut, get a pop up window asking for a name for the new folder and paste Folder1 with a new name in the same folder where the shortcut was executed. Is it possible to do? I'd appreciate some advice on this. Edited January 8, 2018 by zYx Link to comment Share on other sites More sharing options...
Earthshine Posted January 8, 2018 Share Posted January 8, 2018 (edited) Sure seems possible. Advice, pseudo code your algorithm. Then turn that into Code. Also please familiarize yourself with the help file. If you want help with code that isn’t working, please post your code so that we can see what’s going on and test it Edited January 8, 2018 by Earthshine spudw2k 1 My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
spudw2k Posted January 9, 2018 Share Posted January 9, 2018 (edited) As @Earthshine inferred, your help file is your friend. Here are a couple of relevant functions to get you started (*you can click the function names I list to view the online help article for the function, but they are included with the helpfile installed with AutoIt.) InputBox() DirCopy() FileCreateShortcut() Edited January 9, 2018 by spudw2k Earthshine 1 Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF 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