Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
Computer Hope forum e-mail issues and down time
0 Members and 1 Guest are viewing this topic.
It's been 4 years...
guys help me out?
It's been... another 4 years... I using a MiSTer FPGA to run a DOS core, and looking into batch scripting, but just cannot figure out how to get the path to the currently active directory.I cannot get %~dp0 to work either... but trying to experiment some more. I am trying with FreeDOS, DOS 6.22 and DOS 7.1. But I guess I have to make sure I did try all of them.
@echo off>temp1.bat echo @PROMPT SET _CD=$P>temp2.bat command /c temp1.batcall temp2.batdel temp1.batdel temp2.batecho currentDir=%_CD%