ounelly70 Posted June 9, 2006 Share Posted June 9, 2006 (edited) I've searched and searched and tried different things through the help file. I'm such a noob I'm sure its simple, but heres what I'm trying to do... my wedding is in one week and for grooms gifts I gave my guys dvd burners, i also got them programs to burn stuff with them. They are all VERY basic computer users so simple things like copying files from the cd to a folder would be something i couldn't even walk them through on the phone. so I tried to create a cd that has all the programs and my scripts on it... I want them to be able to just run one exe I created that will copy all the files needed from the cd to the proper directory. The problem I'm having is i cant seem to create a script that will simply move everything from the cd to a specified directory... It would then call up another script that was just moved that would install everything.. I think my problem is the @AutoItExe part, If i understood right, and im sure i didn't, thats the macro that will call up the directory that this script is running from, so if i have one guy with his cd drive as D:and one with his as G: it would still work. I figured a filecopy of *.* wouldn't be good because this script would be on the disc as well... this is what i have so far DirCreate("C:\groomsmen") filecopy( @AutoItExe & "\Programs\*.*", "C:\groomsmen\") filecopy( @AutoItExe & "\scripts\next.exe", "C:\groomsmen\") filecopy( @AutoItExe & "\scripts\now.exe", "C:\groomsmen\") filecopy( @AutoItExe & "\scripts\later.exe", @DesktopDir) any help would be greatly appeciated Edited June 9, 2006 by ounelly70 Link to comment Share on other sites More sharing options...
BigDod Posted June 9, 2006 Share Posted June 9, 2006 Instead of @AutoItExe try using @ScriptDir Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Stretch Posted June 9, 2006 Share Posted June 9, 2006 This should do the trick! DirCreate("C:\groomsmen") filecopy( @scriptdir & "\Programs\*.*", "C:\groomsmen\") filecopy( @scriptdir & "\scripts\next.exe", "C:\groomsmen\") filecopy( @scriptdir & "\scripts\now.exe", "C:\groomsmen\") filecopy( @scriptdir & "\scripts\later.exe", @UserProfileDir&"\desktop") Good luck with the wedding! Link to comment Share on other sites More sharing options...
Stretch Posted June 9, 2006 Share Posted June 9, 2006 Im a cock today - @DesktopDir will work just fine! Link to comment Share on other sites More sharing options...
BigDod Posted June 9, 2006 Share Posted June 9, 2006 Im a cock today - @DesktopDir will work just fine!He is copying the files from the CD to a folder on the C drive. @DesktopDir would be of no use to him. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
ounelly70 Posted June 9, 2006 Author Share Posted June 9, 2006 WOW, this is the best forums ever, i just posted that about 6 minutes ago and already you guys are all over it, thank you very much ! Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 9, 2006 Moderators Share Posted June 9, 2006 Congratulations ounelly70, but you better put AutoIt down now before the wedding, or you may be programming right through it One thing to keep in mind, don't hard code drives, if you want it to be their main drive, then look at the macro @HomeDrive: Example. DirCreate(@HomeDrive & "\groomsmen")"C:\" although popular is not always "everyones" main drive. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
ounelly70 Posted June 9, 2006 Author Share Posted June 9, 2006 Congratulations ounelly70, but you better put AutoIt down now before the wedding, or you may be programming right through it One thing to keep in mind, don't hard code drives, if you want it to be their main drive, then look at the macro @HomeDrive: Example. DirCreate(@HomeDrive & "\groomsmen")"C:\" although popular is not always "everyones" main drive. awesome, thanks! I didnt even know you could do that part! Link to comment Share on other sites More sharing options...
ounelly70 Posted June 9, 2006 Author Share Posted June 9, 2006 Really guys, thanks a bunch, i just tried everything and it all works perfectly! autoit really has to be the best thing out there, with the best help too. Link to comment Share on other sites More sharing options...
BigDod Posted June 9, 2006 Share Posted June 9, 2006 Forgot to say welcome to the forums and good luck with the wedding. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Bert Posted June 9, 2006 Share Posted June 9, 2006 @BigDod: Look what you did! You now got another person hooked on AutoIT! They will now be up in the middle of the night trying to figure out how to script the making of a ham sandwich. Then they will try to figure out how to script their spouse to get them a beer without saying anything to them. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
ounelly70 Posted June 9, 2006 Author Share Posted June 9, 2006 thanks guys, im excited I do have another quick question though, how would i go about exiting a program thats running in the system tray just once with autoit ? again any help is greatly appreciated, and you guys are great at it! Link to comment Share on other sites More sharing options...
BigDod Posted June 9, 2006 Share Posted June 9, 2006 Then they will try to figure out how to script their spouse to get them a beer without saying anything to them. A good wife does not need a script to know when to get their man a beer. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
BigDod Posted June 9, 2006 Share Posted June 9, 2006 thanks guys, im excited I do have another quick question though, how would i go about exiting a program thats running in the system tray just once with autoit ?again any help is greatly appreciated, and you guys are great at it!If it is an AutoIt program that you have scripted you could add a Hotkey to it. If it is not lookup ProcessClose in the help file. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
ounelly70 Posted June 9, 2006 Author Share Posted June 9, 2006 If it is an AutoIt program that you have scripted you could add a Hotkey to it. If it is not lookup ProcessClose in the help file. thanks so much Link to comment Share on other sites More sharing options...
Bert Posted June 10, 2006 Share Posted June 10, 2006 A good wife does not need a script to know when to get their man a beer. For those who do have such luck, or are out of beer...... The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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