Sign in to follow this  
Followers 0
LurchMan

FileCopy() with password?

4 posts in this topic

Hey Everyone -

I was wondering if there was a way to use FileCopy() or something simliar to copy files from one server to another (Server 2003 on both) using a password for the source of the file. I've already connected to the server through windows explorer, and I can run my compiled script manually and it works fine, but if I try and use Windows Scheduled Tasks it will fail everytime. I've tried to change that password that it uses in scheduled tasks but since its windows, it won't let me use a different password than what the local admin password is(I can't change it either..too much red tape). It's just kind of becoming a hassel to have to run this script every morning then manually rerun the program that uses these files.

Hope I explained this good enough...

Thanks for any and all help in advance,

Lurch


Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end.

Share this post


Link to post
Share on other sites



If you only need a password to start the copy process (not one for each file) then search example scripts for "password". There are a few that you can use for your script. If the password matches then copy if not then exit the script.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

If you only need a password to start the copy process (not one for each file) then search example scripts for "password". There are a few that you can use for your script. If the password matches then copy if not then exit the script.

Thanks for that idea, but I ended up just putting the whole script (its small..only 50 lines) in a while 1 loop with a timer inside of it with an If statement. I figured out that the only thing holding it back was windows...go figure :)

thanks anyways


Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end.

Share this post


Link to post
Share on other sites

Thanks for that idea, but I ended up just putting the whole script (its small..only 50 lines) in a while 1 loop with a timer inside of it with an If statement. I figured out that the only thing holding it back was windows...go figure :)

thanks anyways

Windows cause an issue? You MUST be joking.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

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  
Followers 0