RE: Desktop shortcut

2002-10-25 Thread Krummel, James C - PGGC-6
Mark, Here is a way to make a shortcut to a file or URL using OLE. James use Win32::OLE; $WSH = Win32::OLE-new('Wscript.Shell'); $SC = $WSH-CreateShortcut($WSH-SpecialFolders('AllUsersDesktop').\\Sample.lnk); $SC-{WindowStyle} = 4; # 3=Maximized 4=Normal 7=Minimized $SC-{TargetPath} =

RE: Desktop shortcut

2002-10-25 Thread Ricci, Mark
); } # Mark -Original Message- From: Krummel, James C - PGGC-6 [mailto:jckrummel;bpa.gov] Sent: Friday, October 25, 2002 2:47 PM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: RE: Desktop shortcut Mark, Here is a way to make a shortcut to a file or URL using OLE

RE: Desktop shortcut

2002-10-25 Thread Krummel, James C - PGGC-6
PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Desktop shortcut Date: Fri, 25 Oct 2002 14:53:05 -0400 Thanks, James. Will your script work on both Win98 and 2k systems? I ended up using this script due to issues with 98: use Win32::Shortcut; use File::Copy; if ($OS) { $User

RE: Desktop shortcut

2002-10-25 Thread Ricci, Mark
[EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Desktop shortcut Date: Fri, 25 Oct 2002 14:53:05 -0400 Thanks, James. Will your script work on both Win98 and 2k systems? I ended up using this script due to issues with 98: use Win32::Shortcut; use File::Copy; if ($OS

Re: Desktop shortcut

2002-10-25 Thread $Bill Luebkert
Krummel, James C - PGGC-6 wrote: Mark, It should work properly on a Win9x machine, as I asked the OS for the location of the desktop rather then using a hardcoded path, although I do not know if it supports the All Users Desktop tag. Here is a list of most of the standard folders the OS tracks