View Full Version : I need to automate my batch file , passing the username and password in the batch fil
aru7730
Feb 17, 2011, 02:41 AM
I need to automate my batch file , passing the username and password in the batch file itself so that, user doesn't have to put in the authentication every time for windows.
Curlyben
Feb 17, 2011, 02:44 AM
Add this line:
PASSWORD /user:DOMAIN\USERNAME
For example drive mapping
net use z: \\PATH PASSWORD /user:DOMAIN\USERNAME /persistent:no
aru7730
Feb 18, 2011, 01:05 AM
How to transfer file between two machine using schedule task in windows 7
Curlyben
Feb 18, 2011, 01:11 AM
Same way as you would do it on earlier windows.
Write your batch file, then follow the create basic task wiz.
Then simply point it at the batch you have already written.
aru7730
Feb 18, 2011, 02:11 AM
I am running windows 7 and I have batch file copy from 1 computer to another .it runs fine, but when I set it up to run in task scheduler it shows as completed successfully but nothing happens. No files are copied and the command box doesn't appear... any idea?
Curlyben
Feb 18, 2011, 02:13 AM
Check the permissions used.