views:

89

answers:

1

If I want to create a *nix symlink, I'll call symlink();, if i'm running a script on windows and I want to create a shortcut, I'd use Win32::Shortcut.

But what if I want to create a Windows shortcut if running a script from a *nix machine?

I'm accessing a SMB share on a Windows Server 2003 machine from my *nix machine.

+6  A: 

Well, I don't know if Samba provides an API for that. On the other hand, Windows shortcuts are just .lnk files in a specific format.

Sinan Ünür
So I should be able to write a function that could generate this specific file type? Are there any tutorials available regarding writing binary files?
Powertieke
@Powertieke: In theory, yes you should be able to write a function to create such a file.
Sinan Ünür