-
Hi there!
I change the .exe of a particular application every few weeks. Many people use the program in my company, so I want to find an automated way in that I can copy the new .exe to everyone's network directory.
Right now, the user has to manually copy the new .exe to their directory every time it changes.
I'm just wondering where to get started with this. I looked in MSDN Jan 2000, and I could figure out what to use - or where to start.
Or, if you have any other suggestions on how to do this, I'd greatly appreciate it!
Andrea :)
-
Precise, please
Hi,
Could you be a bit more precise? Do you need an app that will copy the .exe to every place in the network or do you need an app that will automatically fetch the new .exe from the network?
-
Sorry, I'll try to be more precise this time.
For example, today I made a new .exe (let's say, version 14). What I want to do is put this .exe in the N Drive on my company's network. Then, the program that I'm trying to write will automatically copy the new .exe from the N Drive to all the users' C Drive (in C:\Program Files\CAM\CAM.exe) - "CAM.exe" is the name of my application.
Currently, each user has to do this manually. That is, copy CAM.exe from the N Drive to their C Drive every time that I make a new build.
I hope that helps, let me know if you need more information!!
Thank you very much!!
Andrea :)
-
Use a DOS Batch file
We do have a requirment quite similar to this. What we did was used a batch file.
1. Create a batch file called cam.bat The file would contain these two lines:
copy n:\cam.exe C:\Program Files\CAM\CAM.exe
C:\Program Files\CAM\CAM.exe
2. Now point to this batch file instead of the exe. Place the batch file on the desktop or in the start menu whereever you were having the cam.exe to be running from ( on all the machines ). This has to be done only once.
3. Each time a user has to run the exe, he runs the batch file and the batch file copies the latest and greatest exe from the common directory ( on N drive )and then runs it locally.
Note: This is a very simple manner and follows the "Pull" philosophy. You might want to alternatively use SMS for this purpose. But I love the simplicity of the batch file without having to code a small app in vb or vc++ or anything else.
Hope this helps
-Arun