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.
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.
you want to map a network drive the copy the shortcut then unmap it?
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.
wait for SQLDBA, he is the resident windows pusher about TJ..
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.
Thanks Juba that helps.
You are most welcome, always willing to help. Have you looked into kixtart for your login script.Originally Posted by gravyflex
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.
I found this useful link.
LINK
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