Timeline for How to receive a parameter in a batch file
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2017 at 12:41 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Jul 30, 2015 at 11:15 | vote | accept | sancho.s ReinstateMonicaCellio | ||
Jul 30, 2015 at 11:15 | comment | added | sancho.s ReinstateMonicaCellio | I have added a summarizing answer below, showing the appropriate line of code, superuser.com/a/947474/245595 | |
Jul 30, 2015 at 10:49 | comment | added | sancho.s ReinstateMonicaCellio | @DavidPostill - Your comment is worth an answer. | |
Jul 30, 2015 at 10:44 | comment | added | sancho.s ReinstateMonicaCellio | Feedback #1: I do not know why you set 3 levels of "worthiness" for your solutions (perhaps you could comment on the reasons). At any rate, for the intended use, as posted in the OP, I found the first one is useful, since it allows for extracting the app name without .exe, for later use. The following two alternatives only detect if .exe is present, but they do not isolate the app name. | |
Jun 25, 2015 at 16:27 | comment | added | sancho.s ReinstateMonicaCellio | Very thorough answer! I will check the options and post feedback. | |
Jun 25, 2015 at 11:17 | comment | added | DavidPostill♦ |
@sancho.s Use %~n1 - expands %1 to a file name without file extension. See Command Line arguments (Parameters) for this and other parameter extensions.
|
|
Jun 25, 2015 at 9:25 | history | edited | JosefZ | CC BY-SA 3.0 |
added 1428 characters in body
|
Jun 25, 2015 at 8:48 | history | answered | JosefZ | CC BY-SA 3.0 |