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.
bobsing060797Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SashPCommented:
Open a command window and execute the command from there. This will allow you to see the output from the batch which is likely to show you why the process is failing.

Alternatively in the batch file write the results of the commands to a log file.

eg. copy [sourcefile] [destination] >>logfile.txt

This will pipe the stdout (output) of the command to the file logfile.txt.

Cheers Sash
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bobsing060797Author Commented:
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.
0
SashPCommented:
Try deleting the scheduled task and recreating it.

0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

bobsing060797Author Commented:
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.  
0
bobsing060797Author Commented:
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.  

0
SashPCommented:
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?
0
bobsing060797Author Commented:
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?
0
bobsing060797Author Commented:
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?

0
SashPCommented:
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.
0
bobsing060797Author Commented:
How exactly would I do that?  I do have admin. priviledges.  
0
SashPCommented:
In the Run As box use

[Computer Name]\[Administrator Account Name]

Click set password and enter the Administrator Password.

0
SashPCommented:
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.
0
bobsing060797Author Commented:
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.
0
SashPCommented:
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.
0
bobsing060797Author Commented:
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.
0
SashPCommented:
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.




0
bobsing060797Author Commented:
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?

0
bobsing060797Author Commented:
Sash,  
Any other thoughts?
0
bobsing060797Author Commented:
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
0
SashPCommented:
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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.