Solved

Scheduled Task will not copy files across Home LAN

Posted on 2004-10-25
305 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
Question by:bobsing060797
    20 Comments
     
    LVL 8

    Accepted Solution

    by:
    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
    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
    Try deleting the scheduled task and recreating it.

    0
     

    Author Comment

    by:bobsing060797
    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
    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
    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
    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
    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
    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
    How exactly would I do that?  I do have admin. priviledges.  
    0
     
    LVL 8

    Expert Comment

    by:SashP
    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
    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
    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
    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
    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
    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
    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
    Sash,  
    Any other thoughts?
    0
     

    Author Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: From Zero to Hero with Nodejs & MongoDB

    Interested in Node.js, but don't know where to start or how to learn it properly? Confused about how the MEAN stack pieces of MongoDB, Expressjs, Angularjs, and Nodejs fit together? Or how it's even possible to run JavaScript outside of the browser?

    Suggested Solutions

    Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
    If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

    913 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now