Hi again, On Wed, Jul 20, 2011 at 7:25 AM, Bernd Blaauw <bbla...@home.nl> wrote: > > Slightly offtopic: is there any foolproof way to automatically switch to > the location a batchfile is in? a kind of "CDD %0" except that %0 is > whatever you call it, instead of a full pathname. Same for TRUENAME %0
You might need FreeCOM 0.84-pre2, I think. It has "set /e" (but needs %TEMP% !!) and "cdd" works for "c:\path\blah.exe". Otherwise, you'll have to hack up a quick tool or use something premade (DJGPP's dirname.exe from Shell Utils [shl2011b.zip]) or similar. I'm not exactly sure I understand the issue, but that's as good as guess as I can offer without knowing more. (What are you trying to do? Something from within another .BAT file?) ------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user