G
Guest
I have a login script assigned to users in Active Directory that connects to all the relevant printers. At the moment, this script runs every time users log in. It works, but it's a bit slow on the XP machines. It works by using "rundll32 printui.dll,PrintUIEntry"
I want to make the script run only when it's changed. I was thinking that if I write the date stamp of the file out into the user's roaming profile, I can see whether the script has changed since it was last run. If it hasn't, I can do a "goto :end" command
To do this I need to be able to
Output the time and date stamp of the batch file to a file in %userprofile%
Read the date stamp back in and compare it to the date stamp of the current file
Can anyone give me any pointers. Perhaps I'm approaching this entirely the wrong way, in which case I'd love to hear of any alternatives
Thank
Mr B
I want to make the script run only when it's changed. I was thinking that if I write the date stamp of the file out into the user's roaming profile, I can see whether the script has changed since it was last run. If it hasn't, I can do a "goto :end" command
To do this I need to be able to
Output the time and date stamp of the batch file to a file in %userprofile%
Read the date stamp back in and compare it to the date stamp of the current file
Can anyone give me any pointers. Perhaps I'm approaching this entirely the wrong way, in which case I'd love to hear of any alternatives
Thank
Mr B