Re: directory mng.
- Posted by Larry Miller <larrymiller at sasktel.net> Jul 10, 2006
- 565 views
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