1.

Solve : How to write the string %e% to a txt file??

Answer»

I WANT to write the string %e% to a txt file, using the command line like this:
-------------------------
echo %e% > a.txt
-------------------------

but the previous command line will produce error, because DOS consider %e% as an variable but can't find it.

Is there any any to do that?Which OS are you using?
In NT it works.

uliThanks. I see that.

The command line run in CMD prompt correctly.

But, if run in batch file, it will change as :
------------------------------
echo %%e%% > a.txt
------------------------------

btw, my OS is win2000.[SIZE=16]I met another problem that i don't know how to write a BLANK row to a .txt file.[/size]echo.Thanks, vibhor!Welcome.

I was searching the same a COUPLE of months ago



Discussion

No Comment Found