VS 2010 Extract Tar.gz File?
Jan 10, 2012
i am trying to extract tar.gz file using sharpziplibthis file contain 3 folders and 11 files but this code extract only single file and its folderor this my code is as below
Imports System
Imports System.IO
Imports ICSharpCode.SharpZipLib.Tar
[code].....
View 2 Replies
ADVERTISEMENT
Mar 18, 2012
I'm having a little trouble trying to read a word document in vb. how to get the text out of the word document would be great.
View 4 Replies
May 9, 2009
I need to parse some text to extract the name/path of an image file inside an X file. The part of the file looks something like this:
TextureFilename {
"C:\\Users\\USER\\Documents\\Map\\Textures\\Grass01.dds";
}
[code].....
View 14 Replies
Jun 7, 2011
I've got an application that passes commands to a terminal window and saves all the output to a text file Here is one of the commands my application passes to the terminal
MyProcess.StandardInput.WriteLine("host " + device)
The output of which is
"HostA has address Y.Y.Y.Y"
this along with a whole bunch of other text is saved to a text file...my question is how do I find the sting "HostA has address Y.Y.Y.Y" in that text file and then extract the IP address and assign it as a string variable?
View 12 Replies
Jun 23, 2010
How can I parse a text file and extract the data to excel file. The text file is in the following format
CustomerInformation
Tim Alen
596 George Town
[Code].....
View 5 Replies
Jun 22, 2010
I have a insanely large file that has a lot of customer data in XML format. The start of a customer and end are how I'll determine the starting and ending points of the customer data I need to extract. The is the number I'll be searching for. I'll input a regular text file with 12-byte document numbers into the file (Doc Number List.txt), search the massive XML file (example.xml) for those document numbers, find the data before and after the DOC_NUM tags, but within the CUSTOMER tags and extract it to a formated file. The formated file needs to have these tags, <?xml version="1.0" encoding="ISO-8859-1"?>
View 1 Replies
Jun 14, 2011
Is it possible? And before you tell me to use SharpZipLib or something, i should warn you since i am a complete noob and cant use it without a complete, easy to understand guide.
View 6 Replies
Sep 15, 2011
how would i extract something like this....
CODE:
could possibly something like this work...
CODE:
View 1 Replies
Jul 20, 2010
I have a big problem with my application! I must be extract a Windows DigitalProductId with VB 2010 in Windows 7 x64. I have tested a lot of code but I haven't resolved the problem... This is an easy code, it work perfectly on x86 but non on Windows 7 x64. (I haven't tested on Vista x64).
Code:
' A function that retrieves the product key used to install Windows.
Public Function GetProductKey() As String
' This function will retreive the digital product ID from the registry
' and decode it into the CD key used to install a Microsoft product.
' All that is needed is the registry path to the digital proudct ID block
' for the product in question.
[Code] .....
Error:
System.InvalidCastException:
Unable to cast object of type 'System.Int32' to type 'System.Byte[]'.
The variable dpidDataBlock return ZERO after Registry.GetValue
View 3 Replies
Apr 18, 2011
How to extract digits from the beginning of a string?
1234A - should output: 1234
123AB - should output 123
12ABC - should output 12
1ABCD - should output 1
View 14 Replies
Dec 13, 2011
I wanted to extract today's date from
[URL]
and the expected output will be: Wednesday, December 14th, 2011
View 1 Replies
Aug 26, 2010
I want to extract the jhon
<font color="#008800">
1 jhon
</font>
View 13 Replies
Dec 18, 2011
I have a website with different urls of differents domains but I need to harvest only the links of this domain [URL]
For example there is a list of urls like this:
[URL]
I want to harvest only all urls from the domain [URL]
This is the html code of every link :
<tr>
<td class="label">Paginas cristianas:</td>
<td>
[Code].....
I want to put all url into a listbox,
View 1 Replies
Oct 27, 2010
I have a question about how to get a button to check for a textbox contents, and then compare that with data in my fairly simple database (It's meant as a login procedure).
Here's my database:
It has 2 values, 1 for the manager and 1 for the Admin
Here's my Login screen:
Now...
Everything works just fine, all the code is correct so all the buttons work. For the program i'm making, there's 3 types of users, 1 user who can only change how much money a customer owes the company, 1 user that can add new customers and other little things and one Admin who can change pin numbers and manage backups and stuff like that. For the last 2, i need pin-number/password protection obviously.
The user should enter the pin and then press ok, after which the ok button checks if the pin number the user entered, corresponds to either identifier 1 or 2 (5566 or 6655 for now) and if correct, show the user the next form.
View 5 Replies
May 7, 2012
i have a question is it possible to make a program that can self extract it self? EG. i have app1 and i run it and other 2 files are produced.and another program that does the opposite: i have app2 and other files and packs it self into 1 .exe file
View 8 Replies
Aug 4, 2011
I have the following code which seems to work as intended.
From what i can tell is that Size is not the same as the amount of characters in a particular string, Is Size a size as in Bytes,Kilobytes etc?
Edit: Ive attached a PDF showing the output from this code. Which as you can see shows the wrong output and the sentence's go off of the side of the pdf.
So from what i can see is that tempPage.width (Which is 612) is some how wrong, because 612 characters goes off the side of the PDF Doc.
Public Sub writeParagraph(ByVal text As String, ByVal fontSize As Integer, ByVal align As Char)
Dim newPara As New paragraphLine(text, fontSize, xAxis, newFont)
[Code]....
This was working as intended but then i realised "What if it was possible to generate 1 paragraph at a time and then check the yAxis of the page and if it has been met or exceeded then continue to write the paragraphs on a new page".
Im having a blank brain day lol , I cant seem to work out the correct calculation to extract each paragraph 1 at a time and add it to the arrayList.
View 8 Replies
Jun 22, 2010
I have a file that contain data structure as below:
L,13206,11,02,06,000,3981.100
19,22,25,26,19
END
[Code]....
so how can i extract 1 and -18970.811,53728.643 and export it into a new output file with new structured as below: C 1 -18970.811 53728.643 For your information, the value for -18970.811,53728.643 will be placed after string K,1,P or K,2,P or any number between K and P...
One more thing is i want to append that new formatted data into old ready file that already contain old data... new formatted data will be append to the top of the old file..
View 7 Replies
Dec 24, 2010
I have a text in richtextbox1, i want to extract each 3 char of the string and so on, like:
[Code]....
How can i do it ? Code can be in C# 2010 i will translate to vb.net 2010
View 1 Replies
Jul 29, 2011
I have some html that I want to extract any data that is between the following two bits of HTML:
<DIV class="this-text my-data">
</DIV>
What code would do that?
View 9 Replies
Feb 21, 2011
I have been puzzling over this for about 2 days now but to no avail.All i am trying to do is retrieve all the "<a href = "myLink.php">MyLink</a>"
I can do it via the webbrowser with getElementsByTagName but i just cant for the life of me work out how i split the returned html into either an indexed array or just use inStr or Split function to split this into seperate value, But if i have a csv file with 20 links i dont want to have to load every page into a webbrowser control just to use getElementsByTagName.
Now it all works fine and retrieves the source code from the page. I have only extracted part of the code which is relevant to the retrieving html to try to shorten this post.
[Code]...
View 13 Replies
Jun 4, 2012
I am trying to track the progress of a file that is being extract with a progress bar. but i have no idea on what i should set as the max of the progress bar and the value..
here is my
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
Dim ZipToUnpack As String = "C: est.zip"
[Code]....
View 11 Replies
Aug 10, 2009
I have the following code to extract zip file. It works if the zip file does not contain any folder. (Eg.A zip file only contain text file can be extract, but if the zip file contain a subfolder "New Folder" where the textfile contain inside the folder, then it cannot be extract).What should I change my code?
Code: Private Shared fz As New FastZip fz.ExtractZip(zipFilename, targetDir, FastZip.Overwrite.Always, Nothing, "", "", True)
View 4 Replies
Apr 24, 2012
I'm trying to extract a .tbz file using .net,The file will be very large (3GB) if this makes any difference.
View 2 Replies
Jun 16, 2012
I'm using WinPcap to capture incoming data. Basically I'm dealing with a continuous stream of incoming data, either as byte array or as memorystream (pieces up to 64kb).
I need to check this data to see if there's a certain url and then extract it.
The url I need to find looks like this:http://201.122.38.5/data/today/798572987-589571?139805890582 The length of the 'code' after "/today/" is always the same. The IP address changes. What's the best/fastest/most efficient way to continuously check these byte arrays or memorystreams and extract the urls without hogging the CPU too much?
[Code]...
View 5 Replies
Sep 26, 2011
I have an application that receives data input from an automated set of devices. This data stream I have managed to capture & get it into a list box which I can sort based on the Device ID & the time that the response was received.There is a set time window for the devices to transmit their data into the application and during this each device is not limited to the number of responses it can send (ie :- Device 1 can send in 2 responses where Device 3 can send in 40 responses, etc).All of the responses are captured, listed & sorted within the listbox (this bit is working ).I now need to extract the last (ie:- latest) entry in the listbox for each Device ID & this is where I am stuck. I can retrieve the last item in the list but cant seem to extract the last item for each Device ID.The code that I am using for the Device response capture, etc is :-
*********Code Start
Private Sub btnPoll_Click(ByVal sender As System.Object, ByVal e As_ System.EventArgs) Handles btnPoll.Click
[code].....
View 2 Replies
Aug 30, 2011
API Declarations
<DllImport("oleacc.dll")> _
Shared Function ObjectFromLresult (ByVal lResult As IntPtr, <MarshalAs(UnmanagedType.LPStruct)> ByVal refiid As Guid, ByVal wParam As IntPtr) As
[code].....
View 4 Replies
Jun 22, 2010
what I am trying to achieve is to extract a certain word from a .txt file, eg. "word". I am also running an XML file into a dataset. Within this dataset I want to locate the column which has the name "word" (same string from txt file). Once I have the record in this colomn, I simply want to be able to use it as a string.
Example text file: blah blah blah word blah
Example DataSet: Colomn_1, Colomn_2, word
View 1 Replies
Dec 3, 2008
I have a situation where certain information from PDF documents is entered into a Data Base. I need an easy way for a user to do this. So given a situation where a data entry program is running, then certain data is taken off a PDF document, then entered on to a data entry form etc. So it would be nice to say, have a user click on certain entries on the PDF document, or the document itself and then have the required data load on the data entry form automatically, with using cut and paste on each entry. Note the required data from the PDF document is in same each time, just different values.
View 17 Replies
Sep 17, 2010
I have a file with many pieces like this[code]...
I need about eleven values from eleven lines which are always at the end of tke line and is always between ""
View 10 Replies
Jan 28, 2010
how can i extract exe from my resource file ? to some where i read many topics but none of them works see picture below
View 3 Replies