Find out why it doesn't work, for example:
#!/usr/bin/perl use strict; use warnings; my @args = ("dir", "c:\\"); # replace this with your command and the a +rgument system(@args) == 0 or die "system @args failed: $?"
See system for more information. If you're new the following may be helpful:
In reply to Re: system sub routine with windows7
by marto
in thread system sub routine with windows7
by Njoud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |