1.

Solve : Equivalent of %CD% on older Windows NT versions?

Answer»

Hi,

I need some help for a batch file.

a. %CD% does not work with some older versions of Windows NT. Is there some equivalent for this?

b. How can we store the output of a COMMAND to a variable e.g. set mycwd=, SINCE the above (a) is not working.

Any other more elegant solutions than command output are welcome.

Thanks.

ShaileshYou can try:

set mycwd=.\

Not very elegant but effective.



Discussion

No Comment Found