create a Upate.bat file with the following line in it. (modify server, server path and install path as necessary)
copy \\server\netInstall\sprint.exe "c:\program file\sprint\sprint.exe"
Go into active directory or user manager (for NT4) and in each user there is a "login script" property browse or put the path to update.bat into that property. This will copy the file each time the user logs into the nework. The script to check if it's changed is more involved and would be a VBS file which you should be able to use, but I'm not positive because I've always used simple batch files like above.
Brian Freeman
Bluwave Computing/Carnegie Technologies
www.bluewave-computing.com / www.carnegie.com
(770) 916-0595 ext. 415
-----Original Message-----
From: Bajal Mohamed [mailto:[Email Address Removed] Monday, August 18, 2003 2:36 AM
To: Brian Freeman; LazyDBA.com Discussion
Subject: RE: Scripting to update a file on network....
Hi,
Don't be surprised of my question.
How to create a login script?
Could you please give me some example?
Brian Freeman <[Email Address Removed] wrote:
Couple of options:
Use a network login script which updates the file when necessary
Use some sort of SMS program (Marimba, Microsoft SMS ...)
Give the users a shortcut and have them run off a network copy on a mapped drive
(caution on this one you can only update the file if no one is running the program so you may have to kick people out
to update the file).
There are probably other ways, but I'm not sure of them at this time of the morning.
Brian Freeman
Bluwave Computing/Carnegie Technologies
www.bluewave-computing.com / www.carnegie.com
(770) 916-0595 ext. 415
-----Original Message-----
From: Bajal Mohamed [mailto:[Email Address Removed] Sunday, August 17, 2003 11:58 PM
To: LazyDBA.com Discussion
Subject: Scripting to update a file on network....
Hi,
This is not a DBA question, this something about Windows Server Scripting.
All of our network users have one VB program installed in their PCs (under the directory C:\Progrm Files\Sprint System. That VB program has one exe file (Sprint.exe). We wanted to update that particular file in all the PCs at a time whenever there is a modification in that exe file.
We are facing problem in updating each user (PC) individually.
Is there any way to update that exe file in all those PCs at a time?
Does any scripting is available to accomplish this task?
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To unsubscribe, e-mail: mssqldba-[Email Address Removed] additional commands, e-mail: mssqldba-[Email Address Removed] _____
Do you Yahoo!?
Yahoo! <http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com> SiteBuilder - Free, easy-to-use web site design software
MS Sql Server LazyDBA home page