Originally Posted By: Allen
I just ran the following script on Win7 x64 and it worked fine. It just checks if kix32.exe exists on a shared drive and then runs it to show the help dialog.

Change to match your server/share, etc. If it doesn't work, I would lean towards spelling or permissions.

 Code:
 
$server="windows7-pc2"
$share="shared"
$file="kix32.exe"
$cmd="\\" + $server + "\" + $share + "\" + $file
? $cmd
if exist($cmd)
  ? "Found it"
  shell $cmd + " /?"
else
  ? "Not"
endif


Yikes! Spelling strikes again. I just copied and pasted the output of where the file was supposed to be and it could not run. My script works fine when the file you're looking for actually does exist. Oy, sorry to bother you all with something so silly. Thank you all for all your help - good advice.