badavis5 Posted January 11, 2012 Share Posted January 11, 2012 (edited) i have looked around the forums and found a post about xcopy gui, which was nice. very well done, but it looked to be a single line source/destination application. i just downloaded autoit about an hour ago so i have at least 60 minutes experience with it, but i was able to create the form i want, now i need direction on how to code it. what i am looking for is to put a gui on a batchfile i run about 3-4 times daily: c:windowssystem32xcopy "cnamec$Documents and SettingsacctLocal SettingsApplication DataMicrosoftOutlook" "C:Documents and SettingsacctLocal SettingsApplication DataMicrosoftOutlook" /h/e/y >>d:data-transfer-log.log C:\Windows\System32\xcopy "cnamec$Documents and SettingsacctApplication DataMicrosoftOutlook" "c:Documents and SettingsacctApplication DataMicrosoftOutlook" /h/e/y >>d:data-transfer-log.log C:\Windows\System32\xcopy "cnamec$Documents and SettingsacctApplication DataMicrosoftSignatures" "c:Documents and SettingsacctApplication DataMicrosoftSignatures" /h/e/y >>d:data-transfer-log.log C:\Windows\System32\xcopy "cnamec$Documents and SettingsacctDesktop" "c:Documents and SettingsacctDesktop" /h/e/y >>d:data-transfer-log.log C:\Windows\System32\xcopy "cnamec$Documents and SettingsacctFavorites" "c:Documents and SettingsacctFavorites" /e/y >>d:data-transfer-log.log C:\Windows\System32\xcopy "cnameD$Data" "D:Data" /h/e/y >>d:data-transfer-log.log pause its a simple xcopy batch with multiple lines, and spits out a log. all the files/folders remain the same, the only thing i do to the batch before runnin it each time is change the computer names and account names ("cname" and "acct"). which seems easy, but i would like to have a program where i could just enter the info to a form and click a button. i have attached an image of the form i created, if anyone could help point me in the right direction that would be great. or even suggest an easier way, i work in a rather large facility and im new. before the batchfile i created i was informed i had to do a drag and drop of each folder and that was completely out of the question for me. edit: the second groupbox caption should be "Personal Data" but i didnt take another screenshot of it Edited January 11, 2012 by badavis5 Link to comment Share on other sites More sharing options...
BrewManNH Posted January 12, 2012 Share Posted January 12, 2012 If you look in my signature, there's a link to a GUI that I use at work to do something similar, it's for backing up a user's files. It was designed to work on Windows XP and above, and you could probably get some clues as to what you want to do by looking at that. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator 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