%~dp0 Advice as to dos7 equivelant.

October 28, 2020 at 13:27:56
Specs: Dos 7.1, I7 with 4 gig of ram
Greetings to All,

I have used "%~dp0" may times in XP quickie cmd batch files without really fully understanding the syntax but I do not think that "%~dp0" can be used in earlier dos version e.g. dos 7.1 etc. What I am looking for is a compact (possibly a one-liner) version equivelant to use in dos7 if there is one in fact?

If there is no suitable equivelant could someone suggest a external program that will achieve the same outcome i.e where-ever the batch is located then find its own path (and possibly as a luxury set that path as a variable) please?

Thanks in advance

David

message edited by jackngill


See More: %~dp0 Advice as to dos7 equivelant.


#1
October 29, 2020 at 11:50:27
I'm no expert at coding or batch files but DOS 7.x isn't true DOS & wasn't released by Microsoft. This was just discussed in another thread. You might need to use DOS 6.22 for your batch file to work properly.
https://winworldpc.com/product/ms-d...

Reply ↓  Report •

#2
October 29, 2020 at 13:23:35
I thought we'd had enough of the "it ain't official" BS years ago.
Guess not

=====================

M2


Reply ↓  Report •
Related Solutions


Ask Question