Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

Make batch file create another batch file in specific directory

You need to add some Echos there m8 ;)

if you do:

Code
echo text here WOOOOH > %newbatch%
echo more text i want in the batch file >> %newbatch%

it will be added to your %newbatch% :)

And as Annikk just said: For the part where we create the .bat file, note that the first line uses a single > whereas all subsequent lines use a >>
A single > means "Write this text to the file, overwriting the file if it exists"
A double >> means "APPEND this text to the file, do not overwrite"


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by Robert RougeSep 24, 2026 10:02 AM 4 219 Sep 24, 2026 10:02 AM
Last Post: Anonynuk
[Shell] by Eternal BlueMay 14, 2022 04:02 PM 4 228 May 14, 2022 04:02 PM
Last Post: Sajuuk
[C#] by JoseCmanXDIIMar 7, 2022 03:37 AM 10 512 Mar 7, 2022 03:37 AM
Last Post: JoseCmanXDII