So I need to use "NET USE" in a Perl script to map a Network drive andi am having an issue i believe it has to do with the password having a "$" in it.
$pw = 'TBHxD6$e60r--rjt&'; my $cmd = "NET USE g: \\\\<NETWORK DRIVE>\\<NETWORK FOLDER> $pw /user: +<USERNAME>"; warn $cmd; # whoops!! system($cmd); print "done";
If i enter the exact line from the command line with the same password it works fine but not in Perl.
In reply to Password with special characters by texmex72
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |