Jump to content
Sign in to follow this  
Anacra

Should be an easy one.

Recommended Posts

Anacra

Hello I've got a script running from an external source (USB for Testing CD for final) that refuses to copy a file to the D drive. I'm probably missing something stupid. Here's the relevent part of the script

Filecopy (@scriptdir & "\office\data1.msi", "d:\office\", 9)

anyclues?

Share this post


Link to post
Share on other sites
Shevilie

Does the destination require adminrights ?? (Vista)


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites
Anacra

Does the destination require adminrights ?? (Vista)

It's a 2K box. Does Autoit not run under the context of the user who ran the script?

Share this post


Link to post
Share on other sites
Swift

You must run it under Admin tho....or it wont work....I shared Amp 3 with my friend...but he couldnt edit anything or run anything until he gave it admin rights...try that

Share this post


Link to post
Share on other sites
Anacra

The user account is indeed an admin.

Share this post


Link to post
Share on other sites
Swift

No, You Must Run The Program With ADMINISTION RIGHTS, Not sure how to do this...but you must...ask someone who has vista...it doesnt matter if your under Admin, the program has to ran With Admin Rights.

Edited by Swift

Share this post


Link to post
Share on other sites
Anacra

No, You Must Run The Program With ADMINISTION RIGHTS, Not sure how to do this...but you must...ask someone who has vista...it doesnt matter if your under Admin, the program has to ran With Admin Rights.

The machine is a 2000 box not vista. Maybe I'm not asking the right question. Does AutoIt run under the same context as the user who invoked the .exe?

Or

Is there another way of addressing the D drive. I can do all sorts of things if I stick to C but as soon as I try to use the D volume things stop working. I've also tried fileinstall. Works on C but not D. Same user privlages on both drives.

Edited by Anacra

Share this post


Link to post
Share on other sites
Anacra

The machine is a 2000 box not vista. Maybe I'm not asking the right question. Does AutoIt run under the same context as the user who invoked the .exe?

Or

Is there another way of addressing the D drive. I can do all sorts of things if I stick to C but as soon as I try to use the D volume things stop working. I've also tried fileinstall. Works on C but not D. Same user privlages on both drives.

Got it to work. Had to declare a variable for the d drive and rather than trying to copy straight to d

$d_drive = ("D:\")
dircreate = ($d_drive, "\office\")
firlecopy = (@scriptdir & "\office\", $d_drive & "\office\", 9)

Share this post


Link to post
Share on other sites
Swift

hehe...

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  

×