![]() %~sI - expanded path contains short names only %~xI - expands %I to a file extension only %~fI - expands %I to a fully qualified path name %~I - expands %I removing any surrounding quotes (") You can now use the following optional syntax: ![]() This documentation also contains the explanation for the crazy "tilde notation": In addition, substitution of FOR variable references has been enhanced This is the go-to utility if you want to write anything related to loops. The documentation for the FOR command lists all the crazy parameters you can pass to FOR. Let's take a closer look at some built-ins: FOR /? ![]() Though, at that point the help is referencing command extensions, so the list may be incomplete. START (also includes changes to external command invocation) I don't have a complete list of the built-ins, but you can see most of them by running cmd.exe /?: DEL or ERASE exe files on your PATH are the cmd.exe built-ins. As you can already expect, it's not as useful as one might imagine. This gives you a list of all available commands and their parameters. REM ECHO Skipping non-existent folder '%%A' So that eats up a lot of resources rather quickly. Some will simply start and remain running, instead of printing any help. Not every application on the PATH understands that parameter. ![]() In a previous iteration of the script, I started every command with /?, which is a very bad idea. By default, it only lists those that also reside in %WINDIR% (unless you run it with -all). exe files that you can execute (because they're located on your PATH). To answer your question directly, I devised a script that simply lists all. You can find an official list at Microsoft Command-line reference A-Z. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |