Grygonos has asked for the wisdom of the Perl Monks concerning the following question:
well then I realized that wouldn't work because erase is part of cmd.exe and not an actual program itself. I also tried executing cmd.exe and passing erase and the filename as a paramete... but alas to no avail... I can make a batch file and execute that.. but that's extremely un-monkly... any ideas?@args = ('erase ' , $filename); system(@args) || die "failed to delete";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Executing DOS shell commands via system()
by cbro (Pilgrim) on Jun 06, 2003 at 13:45 UTC | |
by Grygonos (Chaplain) on Jun 06, 2003 at 13:52 UTC | |
by cbro (Pilgrim) on Jun 06, 2003 at 14:09 UTC | |
|
Re: Executing DOS shell commands via system()
by crouchingpenguin (Priest) on Jun 06, 2003 at 14:13 UTC | |
|
Re: Executing DOS shell commands via system()
by Jenda (Abbot) on Jun 06, 2003 at 14:49 UTC | |
by tye (Sage) on Jun 06, 2003 at 20:37 UTC | |
|
Re: Executing DOS shell commands via system() (done)
by tye (Sage) on Jun 06, 2003 at 20:22 UTC |