|
Answer» Hi, I'm trying to make a batch file to make .lnk shortcuts to all of my music collection.
I'm getting close! I can get FOR /R to walk the directory tree, but XXMKLINK is BEHAVING unexpectedly.
for /r "\\mr-f36\music\" %f in (*.mp3) do xxmklink.exe "./" "%f"
XXMKLINK is basically an updated version of shortcut.exe from the WIN2K Dev Toolkit.
Instead of making an appropriately named .lnk to each mp3, this just keeps overwriting mp3.lnk in the directory above me. Your command line passed to xxmklink seems a little short of arguments...
Code: [Select]Command syntax of XXMKLINK:
xxmklink spath opath [ arg [ wdir [ desc [ mode [ ICON[:n] ]]]]]
where spath path of the shortcut (.lnk added as needed) opath path of the object represented by the shortcut arg argument string (use quotes with space, see below) wdir path of the working directory (for "Start in") desc description string (shown in Shosrtcut's Properties) mode display mode (1:Normal [default], 3:Maximized, 7:Minimized) icon[:n] icon file [with optional icon index value n]
In addition to the above, the following switches are supported which can be placed in any position in the command line.
/p prompts before action /q no output when successful (quiet) /e checks error condition strictly
Here is all of the information you need...
http://www.xxcopy.com/xxcopy38.htm
Solved my own problem:
for /r "\\mr-f36\music\" %f in (*) do xxmklink.exe "%~nf" "%f"
Now I have a single directory full of .lnk shortcuts to my entire music collection.
|