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,
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
]
[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
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
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
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
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.
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
]
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
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
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
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
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
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 =
: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
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.
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:
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
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 (
19 matches
Mail list logo