Hello,
I'm trying to get my script to pass an argument to the PStools command psinfo, which requires the remote computer name in the \\hostname format. However whenever I run it, it defaults to the local machine. I think this is happening because Perl isn't parsing the backslashes correctly. How can this be done?
This is running on Windows XP. The lines involved in the script looks like this:
$hostName = $ARGV[0];
my $temp = `c:\\"Program Files"\\pstools\\psinfo.exe -s -c $hostName`
+|| "no dice";
Edit: g0n - code tags