+ Post New Thread
Page 3 of 3 FirstFirst 123
Results 31 to 38 of 38
Windows Thread, Stupid CMD error with logon script in Technical; What is the *.* for in the ROBOCOPY line? It should be either in the quotes of the source path ...
  1. #31

    Join Date
    Feb 2006
    Posts
    1,187
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Stupid CMD error with logon script

    What is the *.* for in the ROBOCOPY line?

    It should be either in the quotes of the source path or may be even omitted.

  2. #32

    Join Date
    Feb 2006
    Posts
    1,187
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Stupid CMD error with logon script

    may be add
    Code:
     net use >> \\<servername>\<sharename>$\test.log
    just before stage 2 just so you can can see all the drive mappings.
    If you are using XCOPY or ROBOCOPY you may not need the drive mapping at all and just specify the source psth using the original UNC.

    I think it might also be worth avoid mapping to z: as I think I read in Minasi or somewhere that Windows maps that letter to the share where the logon script is located.

  3. #33
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: Stupid CMD error with logon script

    Nath, try using a different drive letter. I've a funny feeling that MS use the Z: drive during the logon process (think it might be mapped to NETLOGON share on the PDC). I see the initial error relating to UNC paths on CMD based logon scripts as well so it's quite normal. I believe there is a utility somewhere on the net which can silence a CMD script. I'll have a look when I get change.

  4. #34
    tarquel's Avatar
    Join Date
    Jun 2005
    Location
    Powys, Mid-Wales, UK
    Posts
    1,740
    Thank Post
    13
    Thanked 45 Times in 35 Posts
    Rep Power
    29

    Re: Stupid CMD error with logon script

    ah ha - that could be the answer gents, as I dont think i used the mapped drive until i saw the moaning CMD error and thought it might be that.

    I'll report back asap...

  5. #35
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,988
    Thank Post
    120
    Thanked 283 Times in 261 Posts
    Rep Power
    107

    Re: Stupid CMD error with logon script

    we use z: for home drives with no problem although that might be treated differently as its set by the system and not a script.

  6. #36

    Join Date
    Feb 2006
    Posts
    1,187
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Stupid CMD error with logon script

    Quote Originally Posted by ajbritton
    I believe there is a utility somewhere on the net which can silence a CMD script. I'll have a look when I get change.
    Do you have coin operated web access AJ?

    Seriously though, was the utiltily you were thinking of called CMDOW. There's mention of it on the MSFN Unattend install CD site.

  7. #37
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: Stupid CMD error with logon script

    Quote Originally Posted by NetworkGeezer
    Quote Originally Posted by ajbritton
    I believe there is a utility somewhere on the net which can silence a CMD script. I'll have a look when I get change.
    Do you have coin operated web access AJ?

    Seriously though, was the utiltily you were thinking of called CMDOW. There's mention of it on the MSFN Unattend install CD site.
    Very funny

    CMDOW was not what I was thinking of, but it certainly looks like it can do the job. I've seen scripts which call CMDOW on their first line to hide themselves (CMDOW @ /HID), but I did not know it could be used as a launcher as well.

    edit: I tried it and it appears to work.

    Syntax: CMDOW /RUN /HID MyScript.CMD

    another edit: If you want it, get it from www.commandline.co.uk along with lots of other useful looking stuff!

  8. #38
    tarquel's Avatar
    Join Date
    Jun 2005
    Location
    Powys, Mid-Wales, UK
    Posts
    1,740
    Thank Post
    13
    Thanked 45 Times in 35 Posts
    Rep Power
    29

    Re: Stupid CMD error with logon script

    Managed to get it working....

    Tried CMDOW but no joy... script didnt seem to run or anything.

    Just been tweaking things and connecting via X seems to have done the trick - along with a few tweaks to the syntax of the script

    I can live with the other error hehe The script is normally hidden from view when run anyhow [GP assigned remember].

    Thanks for the input ppl.
    Nath.

SHARE:
+ Post New Thread
Page 3 of 3 FirstFirst 123

Similar Threads

  1. logon script for printer
    By ozzy in forum Scripts
    Replies: 6
    Last Post: 22nd November 2007, 03:03 PM
  2. Printers logon script error messages
    By indie in forum Windows
    Replies: 1
    Last Post: 14th September 2007, 11:34 AM
  3. Logon script & Printer script question.
    By Galway in forum Windows
    Replies: 3
    Last Post: 29th August 2007, 11:00 AM
  4. BGInfo in logon script example?
    By ninjabeaver in forum How do you do....it?
    Replies: 16
    Last Post: 24th August 2007, 12:49 PM
  5. Yet another Logon Script
    By ajbritton in forum Windows
    Replies: 3
    Last Post: 19th June 2006, 09:47 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •