Got a question about a batch file that i want to make. I have a list of remote computers with a particular software package installed that needs to be removed.
I will manually copy this batch file to each PC.
I want the file to run on next startup, remove the program, copy a marker file from my PC to a location (so that anyone looking can see that the bat file has done it's job), then create a text file on my PC with the remote computer's name as the file name (so i know where it's come from)
Here's what i have so far....
if exist "\\Remote PC\marker.txt" goto :removed
if not exist "\\Remote PC\marker.txt" goto :notremoved
echo.Program Alredy Removed
copy "\\my admin pc\temp\marker.txt" "\\Remote PC\">nul
REM the next line removes the software
echo."Program NOT Removed Yet.....but it is now"
REM i want a text file to be created on "my admin pc\temp\"
REM that has the name "remote pc name.txt" in this bit of the batfile
If the marker file already exists, the BAT file has already run, and it stops there.
I want all the text files created on my machine so that i can tell when all the remote machines no longer have the software installed & i can remove the bat file.
So how to i do that bit? Can it be done? Any Clues?