Quantcast
Channel: Planet Object Pascal
Viewing all articles
Browse latest Browse all 1725

twm’s blog: Showing all parameters passed to a batch file

$
0
0

Sometimes you just want to know how a program gets called by another program or by Windows. In that case this little batch file might come in handy:

@echo off
rem This batch file shows its full filename and its parameters
echo cmd file: %~dpnx0
echo Parameters:
for %%I IN (%*) DO ECHO %%I
pause

Blatantly copyied from This StackOverflow answer.


Viewing all articles
Browse latest Browse all 1725

Trending Articles