Solved I have a question about a batch file command

November 7, 2012 at 21:36:07
Specs: Windows 7
echo off
copy MYFILE.ini MYFILECOPY.ini

find /v "randomlineoftext1" < MYFILE.ini > #
move /y # MYFILE.ini


find /v "randomlineoftext2" < MYFILE.ini > #
move /y # MYFILE.ini

find /v "randomlineoftext3" < MYFILE.ini > #
move /y # MYFILE.ini

This is a batch file that removes certain lines of text from a file and then overwrites it in the same directory.

My question is ... What do the "#" do? (numbersign, or poundsign). They show up a few times there, but Im not sure what they mean or what they do? I know when I delete them , the batch file doesnt work.

Thanks guys!


See More: I have a question about a batch file command

Report •


#1
November 8, 2012 at 00:35:46
✔ Best Answer
This:
find /v "randomlineoftext1" < MYFILE.ini > #

puts the output of the find into a file called # [and wipes out any existing file].


====================================
Life is too important to be taken seriously.

M2


Report •

#2
November 8, 2012 at 01:21:00
Ooo i seee! I understand now ! thanks!

Report •
Related Solutions


Ask Question