Tim Johnson <[EMAIL PROTECTED]> wrote:

> Granted, I'm on XP, but I can't seem to reproduce your error.  I created a
> file at the path specified and it works perfectly.  Are you sure that you
> have the exact filename and that you have access to it?  (I guess it's
> windows 98, so you pretty much have access to everything...)  Try pasting
> the printed out version of the file at the Run... prompt and see if you can
> open it.  You may have to put double-quotes around it when you do this.
> 
> The following code works for me:
> 
> #########################################
> 
> use strict;
> use warnings;
> 
> my $file = "c:\\win\\start menu\\programs\\system\\tbs montego\\_visit
> turtle beach web site.lnk";
> print "file = \"$file\"\n";
> open(F, "< $file") or warn "cannot open $file (continuing): $!\n";
> while(<F>){
>       print;
> }
> close(F);
> 
> #########################################
> 
> Of course, .lnk files are not text files, so if you really want to
> manipulate the link, you should use Win32::Shortcut.

The above code you sent me gave me the same error:

file = "c:\win\start menu\programs\system\tbs montego\_visit turtle beach web
site.lnk"
cannot open c:\win\start menu\programs\system\tbs montego\_visit turtle beach
web site.lnk (continuing): No such file or directory
readline() on closed filehandle F at x1.pl line 7.

Also, the Win32::Shortcut has some short-comings, basically, it cannot break
down the modifier codes for shortcuts, so I wrote my own.

Thanks,

Jeff

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to