Re: directory mng.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Salix wrote:
> 
> I have a CGI script that I want to check the directory it's running in 
> and deletes the content of some subdirectories (e.g. temp).
> 
> }}}
<eucode>
> system("del temp/*.*",2)
> -- doesn't seem to work
> </eucode>
{{{

> 
> Any idea how to get around the confirmation that is asked by the system?
> 
> Cheers,
> 
> Salix

This should work:

system("del >nil /q temp\\*.*",2)

>nil redirects console output to the nil device so will not be visible.

the /q switch suppresses confirmations.

Larry MIller

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu