
gnix
Novice
Feb 17, 2009, 4:02 PM
Post #2 of 2
(1319 views)
|
|
Re: [FrankToy] Delete a dir UNC path
[In reply to]
|
Can't Post
|
|
Hi, I am not sure that it will work, but maybe with glob and unlink you can delete these files. Here an example of source code:
#!/usr/bin/perl -w @files = glob("\\my_server\s$\Program"]\\my_server\s$\Program Files\direc1\direc2\direc3\Proofview.*\direc4\direc5.*"); foreach $file (@files) { if(unlink($file)) { print "$file deleted\n"; } } Let me know if it works. gnix ps: Sorry for my English.
|