1.

Solve : How to set a variable to the resault of a command?

Answer»

I'd like to write a MSDOS batch FILES.
In the batch files, I need to SET a VARIABLE to the resault of a command, such as
SET VER = TYPE c:\temp\newver.txt.
How to CORRECT the command above and WORK out the right resault I want ?A this Website are a few M$-DOS solutions:


http://www.student.northpark.edu/pemente/sed/bat_env.htm#firstword

I like Method 4 solution C.

hope it helps
uli



Discussion

No Comment Found