RE: Unlink and UNC paths

2004-10-14 Thread Gerber, Christopher J
I would guess that $flist would need the same escaping on the \ that the first part of your UNC path has or change to ''.. No luck on escaping the '\' either. Anyone have another idea? unlink SERVER\\C\$ . $flist; $flist contains \TEMP\file.tar.gz; When unlink executes,

RE: Unlink and UNC paths

2004-10-14 Thread Su, Yu (Eugene)
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Adam R. Frielink Sent: Thursday, October 14, 2004 9:37 AM To: Perl Win32 List Subject: RE: Unlink and UNC paths I would guess that $flist would need the same escaping on the \ that the first part of your UNC path has

RE: Unlink and UNC paths

2004-10-14 Thread Peter Guzis
] [mailto:[EMAIL PROTECTED] Behalf Of Gerber, Christopher J Sent: Thursday, October 14, 2004 9:53 AM To: Adam R. Frielink; Perl Win32 List Subject: RE: Unlink and UNC paths I would guess that $flist would need the same escaping on the \ that the first part of your UNC path has or change

RE: Unlink and UNC paths

2004-10-14 Thread Hon Shi
Win32 List Subject: RE: Unlink and UNC paths I would guess that $flist would need the same escaping on the \ that the first part of your UNC path has or change to ''.. HTH Steven No luck on escaping the '\' either. Anyone have another idea? unlink

RE: Unlink and UNC paths

2004-10-13 Thread Steven Manross
I would guess that $flist would need the same escaping on the \ that the first part of your UNC path has or change to ''.. HTH Steven -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam R. Frielink Sent: Wednesday, October 13, 2004 12:00 PM To: Perl

RE: unlink

2003-12-16 Thread Lynn. Rickards
Hey Listers- This is not homework. I am teaching myself perl. Question: Does the unlink command not work on windows? The book I am using has some code examples using it but I am wondering if it might be UNIX specific. I hope my code isn't that bad. Thanks! Eric Unlink works even

Re: unlink

2003-12-16 Thread Randy W. Sims
On 12/16/2003 10:14 PM, Eric Edwards wrote: Hey Listers- This is not homework. I am teaching myself perl. Question: Does the unlink command not work on windows? The book I am using has some code examples using it but I am wondering if it might be UNIX specific. I hope my code isn't that bad.

Re: unlink

2003-12-16 Thread Randy W. Sims
On 12/16/2003 11:04 PM, Eric Edwards wrote: - Original Message - From: Randy W. Sims [EMAIL PROTECTED] To: Eric Edwards [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 9:35 PM Subject: Re: unlink On 12/16/2003 10:14 PM, Eric Edwards wrote: Hey Listers

Re: unlink

2003-12-16 Thread Randy W. Sims
] To: Eric Edwards [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 10:12 PM Subject: Re: unlink On 12/16/2003 11:04 PM, Eric Edwards wrote: - Original Message - From: Randy W. Sims [EMAIL PROTECTED] To: Eric Edwards [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent

Re: unlink

2003-12-16 Thread Eric Edwards
It gives me the correct directory and filename but it does not delete the file. Eric - Original Message - From: Randy W. Sims [EMAIL PROTECTED] To: Eric Edwards [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 10:47 PM Subject: Re: unlink [To respond select

Re: unlink

2003-12-16 Thread Sisyphus
Eric Edwards wrote: It gives me the correct directory and filename but it does not delete the file. Eric The filename you give it needs to be in the directory that is printed out. If you want it to delete a file in some other directory you need to provide the path to that file as well: perl

RE: unlink doesn't

2003-08-29 Thread Messenger, Mark
Title: RE: unlink doesn't Try changing: unlink $file; to unlink $logdir\\$file; HTH :) -Original Message- From: Robert Shields [mailto:[EMAIL PROTECTED]] Sent: Friday, August 29, 2003 9:34 AM To: [EMAIL PROTECTED] Subject: unlink doesn't my $logdir = $Server-Mappath

RE: unlink doesn't

2003-08-29 Thread Peter Eisengrein
Title: RE: unlink doesn't Probably a permissions issue, but it could be other things. Try unlink $file || warn Couldn't remove file $file : $!\n; ... or use die if you want it to stop on the first failure. -Original Message- From: Robert Shields [mailto:[EMAIL PROTECTED]] Sent

Re: unlink doesn't

2003-08-29 Thread Carl Jolley
On Fri, 29 Aug 2003, Robert Shields wrote: my $logdir = $Server-Mappath (logs); if (!opendir (LOGDIR, $logdir)) { $Response-write (Could not open directory $logdir: $!br/); } else { my @files = grep (/.*\.xml/, readdir(LOGDIR)); @files = sort @files; @files =

Re: unlink ??

2003-08-14 Thread Richard Morse
:18 À : 'Thomas, Mark - BLS CTR' Cc : [EMAIL PROTECTED] Objet : RE: unlink ?? not work .. if the file is in the current directory it works, but if it's an another directory nothing  happend. i execute my script from c:\prog\, so if i use : unlink ($file) it works but unlink(c:\\$file) don't i also

RE: unlink ??

2003-08-14 Thread barbero_l
agharmine youssef wrote: unlink (c:\\$file); not work but when i replace $file by the true name it works !! my script #!c:/perl/bin/perl.exe print give me a file : ; $file=STDIN; chomp $file; unlink (c:\\$file); thanks May be replacing using chop instead chomp?? Lucas.

RE: unlink(file)

2001-11-28 Thread Scot Robnett
system(del $filename); - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Edward G. Orton Sent: Wednesday, November 28, 2001 2:04 PM To: Perl-Win32-Users Mailing List Subject:

RE: unlink(file)

2001-11-28 Thread Ron Hartikka
Do you have the file open? You cannot delete an open file according to Bill. open (JUNK, 'junkyfile.txt'); print JUNK STUFF IN junkyfile.txt\n; close JUNK; print `type junkyfile.txt`; unlink 'junkyfile.txt'; print `type junkyfile.txt`; ... prints... STUFF IN junkyfile.txt The system cannot

RE: unlink problems

2001-06-18 Thread Frazier, Joe Jr
Message: 10 From: steve silvers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: unlink problems Date: Mon, 18 Jun 2001 12:53:20 - Thanks for all your help so far with this. Im still having a problem. Im using this snippet of code that someone helped with. if (