The Windows batch file parameter modifiers can be quite powerful. Microsoft explains all of the modifiers in the "Using batch parameters" document. The batch file attached below demonstrates each of the modifiers in action.
ParameterModifiers.bat is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.
Attached below is an improved version of the script. This version also outputs the modifiers so that you can see exactly which modifier has what effect.
The following is an example of running the ParameterModifiers.bat.
%~0 = C:\bin\scripts\Windows\ParameterModifiers.bat
The parameter modifiers also works in a FOR loop. The following is an example:
for /R "%localVaultPath%" %%f in (*) do (
Did your message disappear? Read the Forums FAQ.
Spam Control | * indicates required field
TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.
No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.
Messages, files, and images copyright by respective owners.
26 Users Online
Copyright © 1996 - 2024. All Rights Reserved.