Can someone help.
We are trying to write a custom tool that will run the typ command on the host file of a remote pc.
On a local machine the command:
type %windir%\systems32\driver\etc\hosts
Should display the host file in a command prompt.
We want a tool that will display the host file of a server on the admin pc in a command prompt
we have tryed using psexec to do this with the syntax: cmd /x /c m:\hyena\hostfile.bat %E% &pause
hostfile.bat cconatins:
M:
cd \PSEXEC
psexec.exe \\%1 "type %windir%\systems32\driver\etc\hosts"
pause
this and several other variations have been tryed and it always falls over.
Any Ideas?
We are trying to write a custom tool that will run the typ command on the host file of a remote pc.
On a local machine the command:
type %windir%\systems32\driver\etc\hosts
Should display the host file in a command prompt.
We want a tool that will display the host file of a server on the admin pc in a command prompt
we have tryed using psexec to do this with the syntax: cmd /x /c m:\hyena\hostfile.bat %E% &pause
hostfile.bat cconatins:
M:
cd \PSEXEC
psexec.exe \\%1 "type %windir%\systems32\driver\etc\hosts"
pause
this and several other variations have been tryed and it always falls over.
Any Ideas?
Comment