WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

DLLs

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Get WIL DLL Required for an EXE to Run


Question:

I have a (Winbatch small) EXE. I want to know which WinBatch core DLL it requires in order to run.

Answer:

For generally current versions, this code will tell you the name of the WB dll required for an EXE file
testexe="D:\My Documents\incoming\2-Work\telnet.exe"
fs=FileSize(testexe)
bb=BinaryAlloc(fs)
BinaryRead(bb,testexe)
ptr=BinaryIndex(bb,fs-1,"From Wilson WindowWare!",@BACKSCAN)
;Message("ptr",ptr)
dllptr=ptr + 512+32+4               ;224 hex
dllname=BinaryPeekStr(bb,dllptr,50)
BinaryFree(bb)
Message(testexe,dllname)

Article ID:   W16953
File Created: 2007:07:03:14:27:12
Last Updated: 2007:07:03:14:27:12