in reply to Re: RE: Re: How can I remove a Dir?
in thread How can I remove a Dir?
#!/usr/bin/perl-w use strict; use win32; my $dir = "U:\\foo\\bar\\perl"; system ("dir $dir"); system ("del $dir"); # here the /s includes subtrees and /q supresses the prompt # uncomment this and you won't get the prompt! # system ("del /s /q $dir"); system ("rmdir $dir");
|
|---|