Jump to content
Sign in to follow this  
ounelly70

Please help

Recommended Posts

ounelly70

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 by ounelly70

Share this post


Link to post
Share on other sites
BigDod

Instead of @AutoItExe try using @ScriptDir



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites
Stretch

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!

Share this post


Link to post
Share on other sites
Stretch

Im a cock today - @DesktopDir will work just fine!

Share this post


Link to post
Share on other sites
BigDod

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. :D


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites
ounelly70
:D 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 !

Share this post


Link to post
Share on other sites
SmOke_N

Congratulations ounelly70, but you better put AutoIt down now before the wedding, or you may be programming right through it :D

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.

Share this post


Link to post
Share on other sites
ounelly70

Congratulations ounelly70, but you better put AutoIt down now before the wedding, or you may be programming right through it :D

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! :D

Share this post


Link to post
Share on other sites
ounelly70

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.

Share this post


Link to post
Share on other sites
BigDod

Forgot to say welcome to the forums and good luck with the wedding. :D:D



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites
Bert

@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.

:D

Share this post


Link to post
Share on other sites
ounelly70

thanks guys, im excited :D

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!

Share this post


Link to post
Share on other sites
BigDod

Then they will try to figure out how to script their spouse to get them a beer without saying anything to them.

:D

A good wife does not need a script to know when to get their man a beer. :D:P;)


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites
BigDod

thanks guys, im excited :D

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.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites
ounelly70

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

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.