- May
- 120
- 1
I want to embed a list of files in my batch files. Can anyone suggest the best way of doing this?
Specifically, I have a series of filenames, and I want to create shortcuts for all of them. So something like
would probably work, but it's pretty ugly if I need the SHORTCUT command to be any more complex.
Has anyone got any better suggestions? (I'm aware that one option is to have the exe names in a separate file, but I'm trying to see if there's a practical single-file solution, as that makes deployment somewhat easier).
Thanks,
Paul
Specifically, I have a series of filenames, and I want to create shortcuts for all of them. So something like
Code:
(for e in (@con) do SHORTCUT "%e" "" "" "" "Shortcuts\%@name[%e]") << EOF
App1\App1.exe
App2\App2.exe
App3\bin\App3.exe
EOF
Has anyone got any better suggestions? (I'm aware that one option is to have the exe names in a separate file, but I'm trying to see if there's a practical single-file solution, as that makes deployment somewhat easier).
Thanks,
Paul