Anacra Posted January 22, 2008 Share Posted January 22, 2008 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? Link to comment Share on other sites More sharing options...
Shevilie Posted January 22, 2008 Share Posted January 22, 2008 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 Link to comment Share on other sites More sharing options...
Anacra Posted January 22, 2008 Author Share Posted January 22, 2008 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? Link to comment Share on other sites More sharing options...
Swift Posted January 22, 2008 Share Posted January 22, 2008 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 Link to comment Share on other sites More sharing options...
Anacra Posted January 22, 2008 Author Share Posted January 22, 2008 The user account is indeed an admin. Link to comment Share on other sites More sharing options...
Swift Posted January 22, 2008 Share Posted January 22, 2008 (edited) 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 January 22, 2008 by Swift Link to comment Share on other sites More sharing options...
Anacra Posted January 22, 2008 Author Share Posted January 22, 2008 (edited) 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? OrIs 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 January 22, 2008 by Anacra Link to comment Share on other sites More sharing options...
Anacra Posted January 22, 2008 Author Share Posted January 22, 2008 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) Link to comment Share on other sites More sharing options...
Swift Posted January 22, 2008 Share Posted January 22, 2008 hehe... 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