Looking For Tool To Extract Hard-coded Strings Into Resource File
I’m looking for a tool to automatically extract strings from VB project to resource file. The project is too large to do the job manually.
So far, I’ve found one - ResMe String Extractor, which looks pretty cool, but the price tag seems a bit too high ($595). Anybody knows cheaper or possibly free tools?
Thanks!
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Tool For Extracting Hard-coded Strings Into Resource File?
Hi gurus,
I’m looking for a tool to automatically extract strings from VB project to resource file. The project is too large to do the job manually.
So far, I’ve found one - ResMe String Extractor, which looks pretty good, but the price tag seems a bit steep ($595). Anybody knows cheaper or possibly free tools?
Thanks!
Open Text File Into Datagrid - Not Hard Coded
Back in 2002 Zbigniew Borysiuk posted some code on VBCode.com that imported a text file into a datagrid using textstream (see Link to his source code ). This works rather well, but the location of the text file to be opened is 'hard coded' (strPath = App.Path & "Grid.txt" - see below). However, I want people to be able to select the location and file name to be opened. I tried using the commondialog "open" command but couldn't get that to work in the slightest and then I created a text box which lists the path and filename that the user selects (using the Drive1, Dir1, File1 method), but can't seem to find a way of using them with the code either. I'd be very grateful if anyone could point me in the right direction. I'm using VB6 and a text file as the import (I tried using a table in an access database but people then wouldn't be able to save the table as different names in different places on their hard drive - I'm making some stats software and will eventually need the columns in the grid to be summed, divide one column sum by another, etc etc).
Anyway, Here are the troublesome code snippets:
Private Sub Form_Load()
'create rs and bind grid to it
If CreateRs(OpenFile(conRead)) Then
Set DataGrid1.DataSource = rs
'count the records
NumRec
Else
MsgBox "Application cannot create a recordset."
End If
End Sub
Private Function OpenFile(X As String) As TextStream
Dim fso As New FileSystemObject
Dim fil As File
Dim ts As TextStream
Dim s As String
Dim strPath As String
Dim Location As String
'get a path
' this is the bit I need to correct - changing App.Path to anything else breaks the code
strPath = App.Path & "data.txt"
lblFile.Text = strPath
'open the file
Set fil = fso.GetFile(strPath)
Set ts = fil.OpenAsTextStream(X)
Set OpenFile = ts
End Function
Even a pointer on the web would be useful,
Many thanks,
Grant
I am logged in, therefore I am.
Extract Resource File?
Hello,
Is there code out there that will allow me to extract the resource file from a vb executable? I want to grab the languages from the resource file.
Thanks!
Resource File Tool
I don't know if anything like this exists, but it would be great if there was a tool available that can read through a vb project and extract all the strings to a resource file and replace them the the loadresstring function.
If anybody knows of such a tool, preferably open source of some sort, please post back
tks
Hard Coded Authentication Possible?
I have a prog that connects to an Access database over the network, on a win2k server.
What I would like to do is code a username and password into the connection string so the program will authenticate as administrator.
The reason behind this is because the win2k server isn't part of our netware network, so the users are totally different. We mainly use the win2k server for IIS for our intranet.
I don't want to have to create every single netware user on the win2k server, its a beeyotch to make them match up.
Code:
MyConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=\rasc$access dbCompInfo.mdb;Username=Administrator;Password=blah"
MyConn.Open
The above gives me an error, what am I doing wrong?
VBA References Hard-coded ?
When I'm installing VBA-applications with References to other *.dvb (protected functions) by Clients, there's always a error-messages that VBA can't find the referenced *.dvb at the initial location. My question is: It seems to me that these references are Path-hardcoded, is there any way to avoid is, My Client(s) do not have the same Directory structures as on my PC ... Thanks for any tips ... SMD
NT Logon Hard Coded
I wish to hard code an NT user and password in a ASP page so clients that click a link to export data to Excel will not get the logon prompt. Is this possible?
Hard Coded Path Names
Hey all,
I have working code that uses data files. (Not that anyone here should be impressed by that!) The problem is that the paths to these data files are hard coded into the code that uses them.
What are some of the ways to get away from the limitations of hard coded paths and make the code a bit more user friendly for users afraid to edit even a path string for a macro?
The released revsion of my program runs well from floppy because it finds all the data in the root directory of the floppy drive. I want the user to be able to copy the contents into a local directory and still be able to run the program. Currently when this is tried, an error occurs at the first attempt to open a data file.
Best Regards,
Michael
Listview Hard Coded Text
I am trying to create a listview display for some data to be displayed.
I would like to be able to add text to it that is similar to the My Computer display in Explorer. The text that says Hard Disk Drive, Removable Drives ect.
That text does not move when expanding or shrinking the Listview.
How is this done?? I have not been able to figure that out...
TIA
Rick
Copy File From Resource File To Hard Drive As VbHidden
Is it possible to copy a file from the resource to the hard drive as vbHidden ?
I've made a Graphical User Interface for several commandline tools.
I want to include the commandline tools in a resource file and then
when the user starts the GUI, the commandline tools get extracted
to the hard drive as vbHidden.
Most people don't have "Show hidden files and folders" enabled.
This way it looks like there is only one app, instead of a GUI with
all kinds of extra apps, because that looks ugly (in my opinion).
This is the code I'm using now for one commandline tool.
VB Code:
Private Sub Form_Load() Dim sBuffer As String sBuffer = StrConv(LoadResData(101, "CUSTOM"), vbUnicode) Open App.Path & "WhoLockMe.exe" For Output As #1 Print #1, sBuffer Close #1End Sub
Load Data Via Textbox Or Hard Coded?
Hi, not sure how to say it in the subject, but this should be a quick one.
I have data that I inputted into the textbox directly. If I do this directly in the VB code window, will that slow things down? Or would it make no difference? It's just bugging me since there is always an extra blank line if I input my data in the textbox directly (in the GUI). So I wanted to know if speed would be impacted if I just did it directly in the code.
Using VB6.
Thanks.
Public Array With Hard-coded Values
Hey there. I'm new to VB so please excuse my ignorance.
I want to put an array in a mod file so all forms will be able to access the values of the array elements.
Just can not figure out the proper syntax.
I want to put this in a mod file:
Dim LL(55) As String
LL(0) = Chr(34)
' 55 other elements
Then I want to place this on another form:
Text1.text = LL(0)
Any ideas? Thanks!
Error With Connection With Hard Coded Path
I have a form that connects using ADODB
Everything works fine right now, except that my path is hard coded in the Dbq=c:xxxxxx.mdb
When i tried to put a string variable in there with the path it returns an error saying:
Microsoft Access Driver Could not Find File '(Unknown)'
Source: Microsoft OLE DB Provider for ODBC Drivers.
Here is my code:
VB Code:
prvCNNBatchHeader.Open "Driver={Microsoft Access Driver (*.mdb)};Dbq=C:MIPER DEMIPRDEatch.mdb;Uid=;Pwd=;"
* The above line works properly
VB Code:
Option Explicit Private prvCNNBatchHeader As New ADODB.Connection Dim DBPath as StringDBpath = pubStrDatabaseLocation & "" & miprDatabaseName prvCNNBatchHeader.Open "Driver={Microsoft Access Driver (*.mdb)};Dbq=DBpath;Uid=;Pwd=;"
* The above line returns the error.
The variable DBPath does receive the correct and same path that gets hard coded in the correct line
Replacing Hard Coded Connections With Variables
Hi
I have this in my app
Set tdfLinked3 = xlsdatabase.CreateTableDef("linkedtable3", 0, "Sheet1" & "$", "Excel 5.0;HDR=NO;IMEX=2;DATABASE=D:paul_samsonNov.xls")
xlsdatabase.TableDefs.Append tdfLinked3
I have two string var that I want to insert into this connection. I am wanting to replace the database = part.
my vars hold this :
pathtoexcel = d:paul_samson
HR = nov.xls
so i tried this:
Set tdfLinked3 = xlsdatabase.CreateTableDef("linkedtable3", 0, "Sheet1" & "$", "Excel 5.0;HDR=NO;IMEX=2;DATABASE= pathtoexcel & HR")
xlsdatabase.TableDefs.Append tdfLinked3
but this just bombs out , what am I doing wrong and how would I write this.
Strings In Resource File
Am I overlooking something, or is it not possible to retrieve text from a resource file into a string? I know this is what the description of a resource file says it can be used for, but I have tried with no luck. The LoadResData function returns a bunch of question marks and a few other symbals here and there, but it's totaly unusable. Do I need to convert the text to something else first? I can't use a string table because the text contains carrage returns and line feed characters (vbCrLf).
Any ideas?
Excel Addin Path Hard Coded With A User Defined Function
Annoying feature of Excel...
I have created an Excel addin that has a user defined function and then used the UDF in several spreadsheets. However the addin name and *path* get hard coded into the spreadsheet with the UDF. On XP the default Addin folder is under your profile hence my colleagues cannot use the spreadsheets as the addin path is different for their profiles. Effectively using the UDF creates an external spreadsheet link (visible under Excel > Edit > Links) to the addin.
Can you enter a user defined function in Excel whose path is not hard coded? Is there a different way than using an addin? The other possibility I have considered is to install the addin under the Excel installation as it was on NT...
Thanks,
Scottie.
How To Extract Resource File From Other File?
I want to grab a few resources from shell32.dll. I know there is some resource grabber software out there, but I only need to do this one time so I can't justify purchasing one of these.
Any help on how to grab a resource file from another file would be appreciated.
.: Is It Possible To Extract "Multiple" Files From Resource (RES) File?
Hi everyone!
I need some another help on I/O file, please..
In this case, i'm using custom Res file and i want to extract multiple files from it to e specified destination. I an almost similar question in the forum, but a forgot to ask whether it is possible to extract more than one file in a push.
vb Code:
Private Sub Command1_Click() Dim intFF as Integer Dim strPath as String Dim bytData() as Byte intFF = FreeFile strPath = App.Path & "data.dat" bytData = LoadResData("Writings","CUSTOM") Open strPath for Binary as intFF Put intFF, , bytData Close intFFEnd Sub
But the code above extract a single file only which is 'data.dat'. So, how should I do to extract let's say 3 custom files in a turn?
Anyway, thanks to schoolbusdriver for the code
Thank you.
How To Extract Strings From Within Other Strings With The Use Of Delimiters
I have put a web page's html code into a string and now I am trying to extract a string from within that string. I.E. I need to get access to the meta tags. These are denoted by the following
<meta name "keywords" content = $$$, $$$, $$$, $$$ ......>
I was hoping to be able to extract this string by using the < and > as delimiters. Can this be done? Grateful for any help.
Extract Cabfile From Resource?
Yo...
I've been reading a lot on those resource files...
and i figured i could use one.
So i added a .cab file to my exe...
and now i want to create the resource file on a custom location...
but as a test i used the following:
Code:
Private Sub Form_Load()
Dim byteArray As Byte
byteArray = LoadResData(101, "CUSTOM") '<-- the error is on this line...
Open App.Path & "file.cab" For Binary As 1
Put #1, , byteArray
Close #1
end sub()
...but now i get a runtime error 13: type mismatch
I suspect .cab files cant be copied from the resource??
or am i doing something wrong, here?
Thanks...
(Master)Tom.
Extract Resource With Progress
Hello! this is My first post..
I need help to create-update progress bar when extracting .res file from compiled project. Code was taken from: www.vbcode.com. In My case res file is from 2-13 mb, so I would like to see when extracting is finished on slow machine. Thanks in advance.
Windows Resource Handling Analysis Tool
I have a large VB 6.0 application, that uses a variety sub classing and many 3rd party controls. I want to pass Microsoft's Platform Test for ISVs and I'm worried about windows resource handling. Is there any kind of analysis tool around that will monitor an application when it is running and report problem areas? Most software analysis tools seem to be focused simply on the coding side of things rather than the execution.
Do you have such a tool or is there one you would recommend?
Kind Of A Network Administrator's Tool (Hard Question)
Hi
I would like to create a program that connects to a networked computer with that computers IP address and then executes the GetTickCount API so that I can find out how long that this networked computer has been in Windows. I have seen this done before in a small network administration program. This is a real hard question so I’m sure I’m not going to get a straight answer but please if you know where there is source or something let me know.
Thanks
How Can I Extract All Strings From An Exe,dll,cpl,scr....
how can i extract all strings from an exe,dll,cpl,scr....
( i know that we can use resource editors to extract resource strings from exe,dll,.. but im talking about extracting strings that are not in the resource section)
(one thing i really want is to extract all the registry keys from an exe,dll,.. file)
thanx in advance
Extract Two Strings From One String
Right, a bit of an awkward question here.
What I am ultimately trying to do is read values from an IE’s Bookmark file. I then want to pull out the URL as string and the description as string.
The IE bookmark file is a html file and consists of the HTML markup. Each line in the bookmarks file will consist of for example:
<DT><A HREF="http://www.google.com" ADD_DATE="1086248661" LAST_VISIT="1089127374" LAST_MODIFIED="1086248662">Google</A>
I want to end up left with the link: http://www.google.com
And the description: Google
I could remove all the HTML formatting via string manipulation.. e.g. replace ‘<DT><A HREF="’ WITH “”. Etc etc until the HTML formating is removed.
But after removing the formatting I would still be left with the string.. e.g:
http://www.google.com 1086248661 1089127374 1086248662Google
Which is not satisfactory. Even if I am capable of stripping out the numbers in the middle. How can I get it so I can assign the link to one variable, and the description to the other?? So to review I want to start with a string in this format:
STRING1 = <DT><A HREF="http://www.google.com" ADD_DATE="1086248661" LAST_VISIT="1089127374" LAST_MODIFIED="1086248662">Google</A>
Output String1 = “http://www.google.com”
Output String 2 = “Google”
If anyone can follow / understand my attempt at the impossible it would be much appreciated if could reply with a possible solution??
Extract Strings From Html
Hello there,
i need some help,,,,i attached a txt file its the html response from an http server,,,,i need to extract the emails from the html,,,but what is making the problem is when there are "" those characters which mess up the vb code...is there a way to extract the email from a the html code that is saved in a string named say str1 ?
ps: i edited the source and replaced the email with
[EMAIL SHOULD BE HERE!! :( ]
thnx,,,,btw nice new layout! :D
Get All Resource Strings...
I am trying to get all of the string table entries out of a resource file, and I need to get all of the languages, too. Here is what I have so far...
VB Code:
Option Explicit Private Declare Function FreeLibrary Lib "KERNEL32" (ByVal hLibModule As Long) As LongPrivate Declare Function LoadLibraryEx Lib "KERNEL32" Alias "LoadLibraryExA" (ByVal lpLibFileName As String, _ ByVal hFile As Long, _ ByVal dwFlags As Long) _ As LongPrivate Declare Function LoadString Lib "user32" Alias "LoadStringA" (ByVal hInstance As Long, _ ByVal wID As Long, _ ByVal lpBuffer As String, _ ByVal nBufferMax As Long) _ As LongPrivate Const LOAD_LIBRARY_AS_DATAFILE = &H2Private Const RT_STRING = 6&Private Const INT_MAX As Long = 32676 Private Sub Command1_Click()Dim hModule As Long, x As Long, ret As LongDim s As String hModule = LoadLibraryEx(App.Path & "" & App.EXEName & ".exe", _ 0&, LOAD_LIBRARY_AS_DATAFILE) If hModule <> 0 Then For x = 1 To (INT_MAX * 2) s = Space$(255) ret = LoadString(hModule, x, s, Len(s)) If ret <> 0 Then s = TrimAtNull(s) ListView1.ListItems.Add , , s DoEvents End If Next Call FreeLibrary(hModule) End If End Sub Private Function TrimAtNull(ByVal s As String) As StringDim lPos As Long lPos = InStr(1, s, vbNullChar) If lPos > 0 Then s = Left$(s, lPos - 1) TrimAtNull = s End Function
That's all well and good for getting the string resources for the current language, but I'm not really sure how to go about getting all of the other languages out. I have tried changing the locale of the current thread using SetThreadLocale(), but it had no effect. Any thoughts?
Using Strings From A C Resource DLL In VB?
Hello - I'm working on a VB GUI based system that has to support the use of strings from more than one language. There is an existing string table produced with VC 5 as a Win 32 DLL for other displays and I would like to know whether it is possible to load these strings into my VB App?
Any help would be much appreciated!
Regards,
Mairi
Modifying Resource Strings
Many compiled programs contain resource items, that can be modified without re-compiling the executable. For example language-specific strings, icons, version numbers.
Does anybody know how to modify these resources, without recompiling the executable? Are there any API calls to do this, or do I have to wade my ways through the binary data in the executable myself?
Of course I can use one of those third-party resource editors, but I was wondering if it is easily possible to write my own custom program.
Modifying Resource Strings
Many compiled programs contain resource items, that can be modified without re-compiling the executable. For example language-specific strings, icons, version numbers.
Does anybody know how to modify these resources, without recompiling the executable? Are there any API calls to do this, or do I have to wade my ways through the binary data in the executable myself?
Of course I can use one of those third-party resource editors, but I was wondering if it is easily possible to write my own custom program.
Loading Bitmaps, Strings, Icons From Resource DLL
Hello!
Can anyone tell me how can I retrieve images (bitmaps and icons) and strings from resoruce DLL? I already heard for one activex Dll, but it's just trial version and I'd like to make my program without that DLL, because it makes nags.
Regards
Zvonko
Dos Program Coded On .bas[VB MODULE] File
Hi all,
I hope, I can explain you the case.
My client has running a DOS based APPLICATION which is coded in visual basic module [.bas] file. There are several .exe files running on DOS & coded in .BAS files.
[As the application is DOS BASED, there is no visual component or form at all, code only]
Now, my client wants some changes in application.
I have to change code [in .bas file] & make exe file to run on DOS.
I am wondering how it works.
Can you please explain me the steps how to compile and make DOS based .exe file ?.
Thank you,
-NANC
Opening A File, Extract Data And Send A File Via Infrared
Dear Friends,
I am new to this forum and also new to Visual Studio. I need to produce a program which does the following...
1.Use System File Watcher to know that a file has been received in a particualr directory from a mobile phone.
2.Open that file with notepad (the file is not opened by notepad by default), Find the word 'Body:' and save the string found after it.
3.Send via infrared, a file '.jpg' loacated in a particular directory with the same string name as the one stored.
Can you kindly suggest to me some coding?
or at least some website where I can get some tips, tutorials, help.... Cause I don't have the MSDN help installed!
The coding I require is on how to open the file (which is arrived and systemfile watcher noted) with notepad..and how to extract data from it.
Thanks,
Franklin
Simple Tool For Wave File To Text File Conversion
Hi!!
well, i am looking for a simple and convenient tool for converting wave file to text file....this means when i speak into a microphone , i need to a text file to be generated which stores my speech in text format...
i would appreciate if u could send me relevant info at the earliest
have a nice day,
thanking u, peri
If VB And Excel The Right Tool For Creating A Vintage Chart Creation Tool?
I apologize for the neophyte question.
I have previous programming experience, but with outdated tools. I have never programmed in visual basic but I would like to learn, if it is the right tool for the job.
I am just interested in knowing what the best toolset would be to create the following application. I don't want to invest a lot of time in the wrong tool.
I need to create a vintage chart reporting/tracking tool. Imagine any line of products. They have past products, current products and future products. Also, they may want to create a similar report of all of their competitors.
In its simplest form, the report would be an x/y chart, time on the x and price on the y. The text would need to be dynamic (product name, high level specs). I can create something similar with the addlabel routines in excel, but it isn't very appealing to upper management. I need to be able to limit the x access (time, ie. 03-06).
Improvement, in some order of complexity:
Would like to have each product represented by an oval with specs written in the oval. Each competitor would have a different color.
Would like to have graphical representation be a bmp file instead of an oval(picture of the product).
Would like to create graphs that only include one competitor at a time or perhaps a group of competitors.
A modified report would be a snapshot in time with each competitor in a different column. Price still on the y axis.
I would like to drive the data from an excel spreadsheet or an access database. This would help track changes in the data (product cancelled, pushed out, pulled out, different than we projected).
Any thoughts on the best toolset. Also, any high level suggestions for a beginner (buy these books, create this first, don't even try).
I have read that Visio is more programmable than Excel. True?
I don't mind taking the time to learn the tools. I need to upgrade my programming toolset in this current job market. I just want to start in the right place.
Thank you in advance for you patience and help.
Programittically Download A Zip File And Extract The Csv File Into A Bcp
This is a pretty tough one. There is a website PJM.com that contains energy pricing data in csv format. The file names are by date, ex. 20001129-da.csv The da is for Day Ahead pricing. the way the program is designed, based on the date, it creates a file with the same as the one the web site that is going to be downloaded into. The pprogram then takes the data from the website and inputs it into the file that the program creates with the same name using msinet.ocx and inet1. THIS WORKS JUST PEACHY.
The problem I am having is that past data is zipped up into a directory that contains 4 subdirectories and finally the last one contains the file. I am not sure how write a program that will extract the data from that zip so that it will be stored in the root directory where all of the other csv files are contained. I need some serious help on this one. Thanks in advnace.
Mike Reese
Web App Developer
Sunoco, Inc
Play Midi File From Resource File Using MciSendString
Is it easy to call a midi file from a resource file?
I have made a resource file with a down.mid song,
I was hoping to be able to play sound with out having to include it with my exe?
I have tried dozens of different ways with no luck, there was an example code in the bank, but it had so many options and different modules,
the code I have now is;
Code:
Private Sub Form_Load()
Temp = mciSendString("play " & "down.mid", 0&, 0, 0)
End Sub
how can I adapt this to use the resource file?
These are just a few of failed attempts;
Code:
Private Sub Form_Load()
Temp = mciSendString("play " & "101", 0&, 0, 0)
End Sub
Code:
Private Sub Form_Load()
Temp = mciSendString("play " & 101, 0, 0)
End Sub
Code:
Private Sub Form_Load()
Dim b As String
b = StrConv(LoadResData(101, "custom"), vbUnicode)
Temp = mciSendString("play " & b, 0&, 0, 0)
End Sub
Code:
Private Sub Form_Load()
Dim b As String
b = StrConv(LoadResData(101, "custom"), vbUnicode)
Temp = mciSendString("play " & "b", 0&, 0, 0)
End Sub
Code:
Private Sub Form_Load()
Temp = mciSendString("play " & 101, 0&, 0, 0)
End Sub
Thanx
couple of the threads I read
http://www.vbforums.com/showthread.php?t=297909
http://www.vbforums.com/showthread.php?t=429148
http://www.vbforums.com/showthread.php?t=417117
Loading A Word.doc From A Resource File To A Temp File.
The code below is what I use to load a Bitmap from a directory on the C drive to a Bookmark in a Word doc.
Code:
.ActiveDocument.Shapes.AddPicture FileName:="C:SKM SoftwaregraphicsX.gif", linktofile:=True, savewithdocument:=True, Left:=425, Top:=218.5
This code has worked just fine, but now I am putting all the bitmaps into a Resource file in my application.
The code I use to load a Bitmap from a resource file to an Image box is shown below.
Code:
frmReportPg2!ImgCarPn.Picture = LoadResPicture(101, vbResBitmap)
The bit I can't work out is how to load a Bitmap from the Resource file to the Word Bookmark.
Help would be much appreciated.
Thanks
Steve.
Resource File Problem - Extracting File To Path
Hello.
Could you please tell me how to extract file from the *.res file into a selected path? I already loaded all files into resource but r unable to process them from inside it so need to extract them. Coudn't find anywhere. Please help me with a line of code.
Thanks and best regards
Setting Up A Data Input File As A Resource File
Hi,
Is this possible what I am trying to do. I have a file which my app reads from at initialisation to find the paths for certain directories. I have copied it below. Is the easiest way to make sure that the app can always find this file to read, so no matter where the app is installed the file will always be with it to have the file as a resource file.
I tried opening the resource editor and creating a custom resource file using my inout file. The problem is that if this is correct I have no idea how to read in the data from the resource file. Loadresdata only reads in bytes, I am looking for some way to read in lines at a time, as I would do if I was reading in normally from a file.
Is any of the above correct? If not what would be the best way of doing what i want to do?
Cheers,
John
Here is the inout file I was talking about:
#This file contains all the settings paths for the Database and Upload and Download
#directories. Any additional comments added in should be preceded by a # symbol.
#It would be wise to keep a copy of this file under a different name in case this version gets
#corrupted or changes somehow. When editing only edit the paths after the equals sign.
#Do not leave a gap between the path name and the equals sign and keep all data in the
#same order as it is here now.
#Database path + filename
Database-Directory=C:PiperTrack.mdb
#upload directory
Upload-Directory=C:Dan Stuffupload
#Download Directory
Download-Directory=C:Dan StuffDownload
How Can I Extract A .RAR File Using VB6??
Hi every1..
It's really nice to be here.. well i'm a new mmbr in here, n i got a little question..
How can i extract what's in a .RAR file using VB6??
could any 1 plz help??
thanks..
Extract From File
ok I'm trying to extract information from a text file which i do not know the length of. the first line reads
" Todays highest temperature is 23 C 24/01/2004" (there could be numerous lines ) each with different temperatures and also the dates will be different 'cos you input the temperature everyday.
this code does some of it can i use a loop do extract the data i need,
also not quite sure how to fill the temperatures and the date into arrays?
here is my code:
VB Code:
Dim String1 As String ' textfileDim sNum() As Integer ' array to store the temperaturesDim sDate() As Integer ' array to store the datesDim Num As IntegerDim sString As String ' temp temperature store String1 = Text1.TextString1 = Replace(String1, " Todays highest temperature is ", "") ' remove this sentenceString1 = Replace(String1, "C", "") ' remove CelciussString = Mid$(String1, 2, 2) ' extract first number which is the temperatureNum = CInt(sString) ' convert string to integer String1 = Replace(String1, Date, "") 'remove dateDebug.Print NumDebug.Print Date frmChart.Text2.Text = String1 frmChart.ShowEnd Sub
Extract From WP 5.1 File
Hi All,
I want to extract some lines from WP 5.1 documents and write the extracted lines to a CSV file for future import in a database or Excel file. All WP documents is build of several pages – and each page contains one (1) table with different structures. The lines I want to extract from, are all the rows that include 7 columns and where the first columns first character are a digit. Each row must be written as a line where the contests of each column are separated by semicolon. I don’t want to run or open any other programs then my own VB-app. If anyone know how to do this I would really appreciate the help! Thanks in advance!
Marci Sarwan (marci_sarwan@yahoo.com)
P.S. If it's not too much trouble can you please provide some sample code with the solution. Thanks a million!
|