Quick question:I work in primary schools, i have to install the same piece of software on 15 PCs, which takes time.I am using a program called installrite, it takes a snpshot of the PC (ini files CRC etc) then you install your program, then run it again, it takes another snapshot, and saves the changes in a 'package' (.exe) i put this package into a shared folder on my server (a little pc with 98, just acting as file storage) then i goto the shared folder from each client PC, and double click the.exe package, this silently installs every file/change recorded. And restarts the PC.(Is there a program than can do all this?!?)OK. What you are asking for CAN be doen with VBScript, but it isn't recommended. VBScript is meant to isolate the machine from things that would launch something it si not supposed to launch (i.e. Protect against viruses kicking off an automated function).
With this in mind, I'll give you the start of a VB Executable that you can bend to your will if you own VB. Woha, looks perfect, i have a copy of Visual Basic, but i have never used it. You understand my problem perfectly, as you can see from my bat file, its a little simple, and not much use to someone who doesnt know how to use it, would you be able to help with the visual basic? I will give it a go this evening (is it just a matter of cut and paste your example?)-' If you don't, you can use batch files to traverse the directory, pick up each EXE Name, pass to another batch file (using command line arguments and checking them with%1,%2, etc) 'Do you have an example of what you say above?(also links on VB for noobs would be nice)sorry to be a pain! Well, copy/paste and modify for your specifics. Then stop through the code (set a breakpoint by selecting a line of code (not a dim statement) and pressing F9. The line will turn red if successful.
Installrite Tutorial Free
Now run the program and use F8 to step through each line once you hit the breakpoint.I haven't done batch programming in a LONG while, that's why I provided the links. There's samples of looping on the second link I believe. Here's another good link:you might look at these parts:How do I extract a line from a file and set a variable to it?How do I check if a directory exists?VB tutorials. Is this right?also is the z: needed?teacherpcpackageslog $1goto end:errorecho teacherpcpackageslog not found. Cant do anything:end. When i run other.bat, it opens two dos windows and does nothing, ive tryed changing the locations.
Any idea?I have a read/write shared folder called packages on teacherpc.teacherpcpackagespc1.txt$1goto end:errorecho teacherpcpackagespc1.t xt not found. Cant do anything:end. Heres the copy im using, can anyone see a bug?Inner.bat-if not exist MANLAND-S1packagespc1. Txt goto endfind /I '%1' MANLAND-S1packagespc1. Txtif errorlevel 0 goto endecho%1 MANLAND-S1packagespc 1.txt%1goto end:errorecho MANLAND-S1packagespc1.
Txt not found. Cant do anything:end-Outer.bat-for%%f in (.exe ) do start inner.bat MANLAND-S1packages%%f::there should be NO space between the dir and::the file name- -.
Installrite Tutorial Download
Installrite Tutorial Online
Yes, i do all my plugins that way!