Dependency Walker (depends.exe) can be downloaded, or is in Windows 2003 resource kit.
I wanted to script the dependency check for some .dll files, so i ran toward remote server:
psexec \\someserver /u someuser -e cmd /c "environment.cmd&depends.exe /c /pb /oc "d:\depends.temp" "some.dll""
Now parse the output file, first column is status, look for "E,":
findstr /bic:"E," \\someserver\d$\depends.temp
if errorlevel 1 echo all OK
I have not made a way to avoid enter password, but if I need I recall there are some runas and similar alternatives.
Monday, May 19, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment