|
Answer» Hi I very new to this but I need a script that replaces a file it while displaying a text saying that it is replacing the file You need to provide more details. What is the name and path of the file you want to replace? And what is the location of the file that will be replace it? And what OS are you running?
If you want to replace C:\app\program.exe with C:\new\program.exe, then you could do something like: Code: [Select]@echo off echo Replacing C:\app\program.exe copy C:\new\program.exe C:\app\program.exe /y Thanks
Will this script work with XP ,2000 ,ME ,Vista & 98Yes, it should work with pretty much everything from TRUE MS-DOS to Windows 3.1, Windows 95 through Vista and everything between.Hi I TRIED this code but it doesnt work and the files do EXIST
Code: [Select]@echo off echo Replacing... copy C:\Users\Somebody\Documents\Gamemaking\Open Source\Game Updater\Latest Version\V2.0.0.2 Release\lol2.txt C:\Users\Somebody\Documents\Gamemaking\Open Source\Game Updater\Latest Version\V2.0.0.2 Release\lol.txt /y TIMEOUT 10If there are spaces in the path or filenames then you need QUOTES around them. Like: Code: [Select]@echo off echo Replacing... copy "C:\Users\Somebody\Documents\Gamemaking\Open Source\Game Updater\Latest Version\V2.0.0.2 Release\lol2.txt" "C:\Users\Somebody\Documents\Gamemaking\Open Source\Game Updater\Latest Version\V2.0.0.2 Release\lol.txt" /y TIMEOUT 10Code: [Select]Start "C:\Users\Somebody\Documents\Gamemaking\Open Source\Game Updater\Latest Version\V2.0.0.2 Release\lol.exe" I want to launch the exe "lol.exe" why does it come up with the command promt? Is this part of the same question?
Try TAKING away the "Start" and just leave Code: [Select]"C:\Users\Somebody\Documents\Gamemaking\Open Source\Game Updater\Latest Version\V2.0.0.2 Release\lol.exe"
|