my $cmd = "net use Q: 137.201.176.204:/share"; #my $cmd = "net use Q: \\\\137.201.176.204\\share" system($cmd); $cmd = "C:\\Windows\\System32\\mount.exe -u:root -p:root123 \\\\137.201.176.204\\share Y:" system($cmd);