1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

NET USE in AT (Scheduler)

Discussion in 'Legacy Windows' started by vijay, 2005/01/19.

Thread Status:
Not open for further replies.
  1. 2005/01/19
    vijay

    vijay Inactive Thread Starter

    Joined:
    2005/01/19
    Messages:
    2
    Likes Received:
    0
    Hi,

    I have a batch file which contains the following

    Filename: cp.bat
    net use w: \\{servername}\{shared folder} {password} /user:{userid}
    copy w:\*.* c:\temp
    net use w: /delete

    When I schedule cp.bat using AT command as below
    AT 17:00 /interactive cmd /k c:\cp.bat

    I get this below message:
    *-*-*-*-*-*-*-*-**--*-*-*
    C:\WINNT\system32>net use w: \\{server}\{shared folder} {password} /user:{user id}
    System error 1312 has occurred.

    A specified logon session does not exist. It may already have been terminated.

    C:\WINNT\system32>copy w:\*.* c:\temp
    The system cannot find the drive specified.

    C:\WINNT\system32>net use w: /delete
    The network connection could not be found.

    More help is available by typing NET HELPMSG 2250.
    *-*-*-*-*-*-*-*-**--*-*-*

    Please let me know how do i get around this.

    Thanks in advance.

    Regards,
    Vijay
     
  2. 2005/01/19
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    Do you get an error if you run the batch file interactively?

    I've had a number of problems with AT. It isn't very reliable in my experience. If the batch file will run interactively, I'd suggest you get hold of an alternative scheduling program.
     

  3. to hide this advert.

  4. 2005/01/20
    vijay

    vijay Inactive Thread Starter

    Joined:
    2005/01/19
    Messages:
    2
    Likes Received:
    0
    NET USE in AT (Scheduler) update

    Either case the error is noticed. i.e. I tried "AT 17:00 cmd /c c:\cp.bat ".

    Thanks,
    Vijay
     
  5. 2005/01/21
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    What do you get if you type "cp.bat "?
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.