I have a batch file that i use to copy files to computers on our network. the way it works is that it pings IP Addresses in a text file called ping.txt. Those that it gets a reply from it enumerates into a yes.txt file. I then run another batch file to copy certain files to those computers in the yes.txt file. it works beatifully, but now i need to delete files and i dont know how to.
I need to a shorcut from the All Users\Start Menu\Programs\ folder that is called 'HelpDesk Self Service'
this is an example of the code i use to copy files... any help would be much appreciated...
** this copies the shortcut - which i now need to be removed and replaced
for /f "tokens=1" %%a in (yes.txt) do copy /y "\\192.168.12.1\shared\support\helpdesk\*.*" "\\%%a\c$\Documents and Settings\All Users\Start Menu\Programs"
**this is just an example of another line in my batch file
for /f "tokens=1" %%a in (yes.txt) do copy /y "\\192.168.12.1\shared\support\Backup\backup.bat" "\\%%a\c$\windows\system32"