Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


how to read dll files using vbscript

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,60168
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> how to read dll files using vbscript
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 how to read dll files using vbscript - 5/13/2008 6:22:54 PM   
  r.jobyjoseph

 

Posts: 6
Score: 0
Joined: 5/13/2008
Status: offline
  I need to read a dll file and retrieve values from that  using vbscript. Is it possible?

Is there any parser like xml parser available to read the dll files?

< Message edited by r.jobyjoseph -- 5/14/2008 10:02:44 PM >
 
 
Post #: 1
 
 RE: how to read dll files using vbscript - 5/13/2008 6:52:51 PM   
  ginolard


Posts: 1051
Score: 21
Joined: 8/10/2005
Status: offline
What information do you need?  If it's simple stuff like filesize, date changed etc then you can do it with the FileSystemObject.  If you actually want to read the contents of the file then VbScript can't do it.

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to r.jobyjoseph)
 
 
Post #: 2
 
 RE: how to read dll files using vbscript - 5/14/2008 9:54:45 PM   
  r.jobyjoseph

 

Posts: 6
Score: 0
Joined: 5/13/2008
Status: offline
I actually want to read the dll file and from that dll file i want to retrive the value of the key
example

[Key]
Keyname = KNKN
Keyvalue = 1010

i want to read the keyvalue and if its is knkn i want to retreive tha Keyvalue of that ie 1010

whether we can use getprofilestring or any functions like that. is it possible to create one object.?

(in reply to ginolard)
 
 
Post #: 3
 
 RE: how to read dll files using vbscript - 5/15/2008 12:01:02 AM   
  ebgreen


Posts: 4972
Score: 31
Joined: 7/12/2005
Status: offline
If the DLL provides a COM interface, you may be able to instantiate an object and get the information. We would need to know more about the DLL and what you are trying to get from it.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to r.jobyjoseph)
 
 
Post #: 4
 
 RE: how to read dll files using vbscript - 5/15/2008 3:42:02 AM   
  ehvbs

 

Posts: 2173
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi r.jobyjoseph,

if this

[Key]
Keyname = KNKN
Keyvalue = 1010

is sample content of your file, I doubt that it is a DLL (binary executable code).
If your file is an .INI file (as your sample suggest), you can use a Regexp to
get at the value for (a) specific key(s).

Regards

ehvbs

(in reply to ebgreen)
 
 
Post #: 5
 
 RE: how to read dll files using vbscript - 5/18/2008 5:50:18 PM   
  r.jobyjoseph

 

Posts: 6
Score: 0
Joined: 5/13/2008
Status: offline
My folder contain two files test01.PDF and Test01.ESW

Actually I want to read the contents of the  file named Test01.ESW.
The contents of the file are given below.
From this i want to read the value of the field "SHORTDESC" and assign this as the name of the file Test01.pdf(rename this file to the value in "SHORTDES").
Then I want to read the fields Keyname and keytext and assign the value of keytext as one of the properties of the file.

how to do this using getprivateprofile string to read this file.
also is there any com componenent(i am a totally new to pgming and have no idea on what is com component. could anybody explain this" ) 
-------------------------------------
[GENERAL]
Version=4
SHORTDESC=101 test scan
ABLDATE=02.08.2007
ABLDATE2=
OBJTYPE=3
KEY=0
ACL=
GUID=
KIND=0
PATH=0
FLAGS=
DOCDATE=
DOCDATE2=
DOCTYPE=Accounts
MASKFLOWID=-1
USER=10
DELDATE=0
SREG=
REPLSET=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
[KEY1]
KEYNAME=CNBN
KEYTEXT=209
KEYKEY=CNBN
[KEY2]
KEYNAME=CNBKM
KEYTEXT=Test scan date
KEYKEY=CNBKM
[SUBITEMS]
0=0010FDDC
1=0010FDDD
2=0010FDDE
3=0010FDDF
4=0010FDE0
5=0010FDE1
6=0010FDE2
---------------------------------------------------

(in reply to ehvbs)
 
 
Post #: 6
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> how to read dll files using vbscript Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts