Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Scheduled Task will not copy files across Home LAN

Posted on 2004-10-25
20
Medium Priority
?
308 Views
Last Modified: 2012-05-05
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.
0
Comment
Question by:bobsing060797
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 11
  • 9
20 Comments
 
LVL 8

Accepted Solution

by:
SashP earned 500 total points
ID: 12405172
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
 

Author Comment

by:bobsing060797
ID: 12406118
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
 
LVL 8

Expert Comment

by:SashP
ID: 12407907
Try deleting the scheduled task and recreating it.

0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:bobsing060797
ID: 12412339
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
 

Author Comment

by:bobsing060797
ID: 12412428
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
 
LVL 8

Expert Comment

by:SashP
ID: 12412501
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
 

Author Comment

by:bobsing060797
ID: 12412931
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
 

Author Comment

by:bobsing060797
ID: 12413140
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
 
LVL 8

Expert Comment

by:SashP
ID: 12416400
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
 

Author Comment

by:bobsing060797
ID: 12416445
How exactly would I do that?  I do have admin. priviledges.  
0
 
LVL 8

Expert Comment

by:SashP
ID: 12416476
In the Run As box use

[Computer Name]\[Administrator Account Name]

Click set password and enter the Administrator Password.

0
 
LVL 8

Expert Comment

by:SashP
ID: 12416503
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
 

Author Comment

by:bobsing060797
ID: 12416572
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
 
LVL 8

Expert Comment

by:SashP
ID: 12416645
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
 

Author Comment

by:bobsing060797
ID: 12416746
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
 
LVL 8

Expert Comment

by:SashP
ID: 12416819
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
 

Author Comment

by:bobsing060797
ID: 12416857
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
 

Author Comment

by:bobsing060797
ID: 12446738
Sash,  
Any other thoughts?
0
 

Author Comment

by:bobsing060797
ID: 12520578
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
 
LVL 8

Expert Comment

by:SashP
ID: 12521475
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question