John Yoo schreef:
> I found a DOS command program called xxmklink that creates shortcuts
> for a given file. The syntax is: xxmklink "path of the shortcut name"
> "path of the object file name"
On NTFS there are also hardlinks and softlinks, see Win32::Hardlink and
Win32::Symlink.
http://search.cpan.org/~autrijus/Win...02/Hardlink.pm
> I would like to find all the .bat files in its directory and all
> subdirectories. Then capture all the characters from the last "\" to
> ".bat" for the shortcut name. For example, the command finds
> "C:\some_dir\another_dir\a_filename.bat, then the shortcut name is
> a_filename. What command(s) should I use? How is this written? Is
> this possible?
For less surprises, always use the forward slash '/'.
Check out
http://search.cpan.org/~ingy/IO-All-0.33/lib/IO/All.pod for
all traversing and manipulating your filesystem.
--
Affijn, Ruud
"Gewoon is een tijger."