|Thanks Mechanix2Go, I have tried your script and it worked. I'm just stuck at two parts:|
This is what my script now looks like:
@echo off > newfile.txt
for /f "tokens=* delims= " %%a in (c:\file.txt) do (
echo !str! >> newfile.txt
If it's not too much of a bother, could you help me with these =(
1.) The variable PASSWORD, isn't just PASSWORD, it's PASSWORD00 (with two zeros after). Even if I do
it will still show up as def00. How can I make the whole thing just 'def'?
2.) The output of the file is newfile.txt, but I really need it to have the same name as its input file - "file.txt".
Please help me, I'm lost in the world of scripting.