Results 1 to 10 of 10

Thread: .bat scripting resources

  1. #1
    Join Date
    Jun 2003
    Posts
    573
    Rep Power
    0

    Default .bat scripting resources

    Does anyone know were I can find .bat scripting resources. I am trying to use a logon script to copy a shortcut to users desktop. I can't seem to figureout what the env would be.

  2. #2
    Join Date
    Jan 2005
    Posts
    3,151
    Rep Power
    0

    Default

    you want to map a network drive the copy the shortcut then unmap it?

  3. #3
    Join Date
    Jun 2003
    Posts
    573
    Rep Power
    0

    Default

    I want to check if drive is mapped, if not map it, check if short cut is there, if not copy shortcut from a folder on mapped drive.

    What would be ideal for me is a good .bat scripting resourse -ebook or website.

  4. #4
    Join Date
    Jan 2005
    Posts
    3,151
    Rep Power
    0

    Default

    wait for SQLDBA, he is the resident windows pusher about TJ..

  5. #5
    Join Date
    Mar 2004
    Posts
    812
    Rep Power
    0

    Default

    I don't know of a bat scripting source but this should get you on your way.

    Code:
    if not exist h:\ net use h:\ \\servername\sharename
    
    if not exist %userprofile%\desktop\filename copy source\filename %userprofile%\desktop\
    Last edited by juba; May 19, 2005 at 06:28 AM.

  6. #6
    Join Date
    Jun 2003
    Posts
    573
    Rep Power
    0

    Default

    Thanks Juba that helps.

  7. #7
    Join Date
    Mar 2004
    Posts
    812
    Rep Power
    0

    Default

    Quote Originally Posted by gravyflex
    Thanks Juba that helps.
    You are most welcome, always willing to help. Have you looked into kixtart for your login script.

  8. #8
    Join Date
    Jun 2003
    Posts
    573
    Rep Power
    0

    Default

    I was looking at it a few weeks back but I have not done anything much with it. It's something I want to get into also.

  9. #9
    Join Date
    Jun 2003
    Posts
    573
    Rep Power
    0

    Default

    I found this useful link.

    LINK

  10. #10
    Join Date
    Apr 2005
    Posts
    52
    Rep Power
    0

    Default

    All sysadmins today need to know some WSH scripting since win2k is the defacto standard start here,as you will see the initial problem was very simple :
    http://www.microsoft.com/technet/scr...r/learnit.mspx

Posting Permissions

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