Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

WAD @DLLTYPE Code 0

Aug
2,293
111
@DLLTYPE returns ECHO OFF for an unknown DLL type, instead of zero.

@EXETYPE returns 0 for an unknown Application type.

Code:
E:\...\thincore>echo %@exetype[tctest.vbs]
0

E:\...\thincore>echo %@dlltype[tctest.vbs]
ECHO is OFF

Joe
 
Yepper, a UDF.
Code:
dlltype=%@execstr[pshell /s "$a = get-peheader %1; $a.type"]

Removed the UDF,
and @dlltype returns the zero as expected.

Joe
 
Back
Top