Link to home
Start Free TrialLog in
Avatar of bobsing060797
bobsing060797Flag for United States of America

asked on

Scheduled Task will not copy files across Home LAN

I use XP Pro and have a scheduled task to copy some files from one computer on my home LAN to another computer on my home LAN.  Whenever I run the task, all I
see is a blink (of a dos window for 1/4 second), with no files copied to the other computer.  The task to be run is a simple bat file (only 5 lines).
Could someone help me with this?

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of SashP
SashP

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bobsing060797

ASKER

Thanks Sash.

Going through that helped me find part of the problem - namely, the name of my bat file had spaces in it.  
My other problem concerns the user-name in the field marked "Run as".  In this field it has the name of my computer and a short name that was my user name in the past.  However, in Control Panel\user name, I am now using a different name.  I have 2 small questions on this problem.

1.  Why does it have the old name rather than the newer user name?  
2.  If I change the old name to the new name and enter the passwords, I get the following error message.

"An error has occured while trying to set task information.  The specific
error is:  0x80041310:  Unable to establish existance of the specified
account. Ensure the account name specified is valid."

What should I do?  

Thanks for your help.
Avatar of SashP
SashP

Try deleting the scheduled task and recreating it.

Aftre reading your suggestion, I followed it.  The program entered my old user-name in the "Run as" field.  So, I changed it to my new one.  Once I entered the passwords and clicked OK, I got the following message.  

"The new task has been created but may not run because the current information could not be set.  The specific error is: 0x80041310:  Unable to establish existance of the account specified."  

It sounds like there is something about user accounts that I do not understand.  
When I clicked OK to that error message, it set up the new task.  I then double clicked the task and found that it had set it up to run as "the old name".  So, I clicked set password and Apply and it did not give me the error message again.  

This seems to indicate further that there is something about user accounts that I do not understand.  

I assume in the run as box the user name you are using is of the format [machine name]\[user name] or if you are on a corporate domain [domain name]\[user name].

In control panel under user accounts does the domain\user name that you are using exist?
You assume correctly.  In the "Run as" field the format is [machine name]\[user name].

In control panel\user accounts I find two options -- "Pick a Task ..."  & "or an account to change".

Under Pick an account to change, there are 2 options -- Guest and my new user name.  That new user name is NOT preceded by the machine name.  And my old user name does not show up.  Am I looking at the correct screen?
This may help Sash.  

I work at home and I am the only one who uses my computer.  So, some time back I set my computer to boot up without me having to sign in.  It goes straight to my desktop.  Does that explain anything about the problem?

Perhaps.

Have you tried setting the job up using the Administrator name and password instead of your user name?  If not give that a go.
How exactly would I do that?  I do have admin. priviledges.  
In the Run As box use

[Computer Name]\[Administrator Account Name]

Click set password and enter the Administrator Password.

Your admin priviledges are not going to help at the moment as the computer is not authenticating you when running the job.  So the first thing we need to do is have the computer authenticate you, the problem is not the priviledge of the account you are using.
My Computer Name is "Office".  So I typed in Office\Administrato, set the password and pressed "Apply".  When I did this I got the error message
Access is denied.  You do not have permission to perform the requested operation.
Ok try this.

Go to control panel open User Accounts

Select the user account that you are using to log on with. Click reset password and change the password.

Go back to the job scheduler and try the new password.
I tried this and it said it was unable to establish existance of account specified.  There is another inconsistency which I thought of which I think will help you see what the source of my problem is.  In this description I am going to call my new name "C"

1.  As I mentioned a few entries above, there are only two options under user accounts ("Guest" and "C").  
2.  Nevertheless, in the file structure on my c: drive, under Documents and settings there is no folder for "C".  The only options are:
All Users
Bob
Default user
Tasks

I am sure this gives evidence of at least part of the problem.  Can you tell me what it is?

Thanks.
It suggests that the user C has never logged on.  When you log on for the first time the default user profile (which includes the directories in Documents and settings are created).

So the question is who are you logged in as?

Use CTRL ALT DEL it should tell you.

Otherwise

type "cmd /k set" in Start/Run box

Then, look at the USERNAME field below.

Are you logged in as C or perhaps you are logged in as Guest.

"some time back I set my computer to boot up without me having to sign in"  how?  There are a few ways of doing this.




I am logged on as Bob.

How?  On Logon/Logoff options I have both boxes checked:
Use the Welcome screen.     and
Use fast switching.

Does this tell you how I did it or was there another step?

Sash,  
Any other thoughts?
Sash, although you did not really answer all my questions, you did answer the first part very well.  Further, you helped me with the other parts.  So, I am giving you all the points and an Excellent grade.  

I solved the rest of the problem by going back to my old name and starting to use a password again.  It is probably more secure (though a bit more cumbersome) that way anyway.  

Thanks for your help.
Bob
Thanks Bob. I am sorry I could not provide the answer you are looking for.  I have no issue if you want to apply for a refund on the question.

Sash