Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
foxidrive
- Expert
- Posts: 6031
- Joined: 10 Feb 2012 02:20
#2
Post
by foxidrive » 25 Sep 2012 00:09
When you launch a batch file by typing the name then %0 only contains what you typed.
This is more robust:
-
spatters
- Posts: 4
- Joined: 25 Sep 2012 00:00
#3
Post
by spatters » 25 Sep 2012 01:20
Sure. But if you type the full name of the batch file this works. Apparently it is okay to specify how the batch file should be called, judging by the quine page. Also judging by that page, brevity matters. If robustness is a goal you could do this: