Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Retrieving Info From An Online File


Ello peoples
I'm a student who is doing a major project and i was just wondering if there is anyway i can retrieve information from a text file that is stored online (at geocities or sumfing).
(i am using VB6)

Thanks




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Sending Info To An Online TXT File
If possible [and easy], I would like my program to do something similar to the following:

1) When the user opens it, it detects whether or not they have an Internet connection. I've already gotten this step figured out.

2) If they do, I would like it to update a TXT file on my web site with simply the date and time that my app. was opened.

Is step 2 easy to do or is it a pretty challenging task? As always, thanks in advance for any and all help.

-Tony

Need Help With Retrieving Line Info From Txt File
I have the code where it will open a text file and pull the first line of information but the only I thing I want from that line is acct # that is before the comma and nothing after.

1111111, 12/07/08

--RESOLVED-- Retrieving Info. From A Text File Problem...
I have a text file named history.dat .

It contains the history of various coin-op arcade games, for use with a window frontend. The idea is to see the history for a selected game.

The info in the dat is seperated like the following:


#Pac-Man
$info=pacman,pacmanm,pacmod,pacmanbl,
$bio

Information on this game here....

$end

#Space Invaders
$info=invaders,sitv,sicv,sisv,invderl,sisv2,spacealt,invaderl,
$bio

Information on this game here....

$end

etc...etc.



The names seperated by a comma after $info= are the names of the parent game (1st name e.g. 'invaders') and then the clones of the parent (e.g. 'sitv'). The idea is to select the text for the required game, which can be the parent or a clone. The game names are in a listview, so when i select let's say, 'invaders' or 'sitv', the history will show for that game.

I don't want to view the $info, $bio, $end or #gamename tags in my selected text.

At the moment, my code only gets the info if the name is a parent, e.g. 'invaders', due the the Instr statement.


VB Code:
Private Sub ViewHistory()    Dim strText As String    Dim TextStart As Double    Dim TextEnd As Double            Open App.Path & "history.dat" For Input As #1        strText = Input(LOF(1), #1)    Close #1     ' doesn't find clones at the moment    TextStart = InStr(1, strText, "$info=" & frmMain.lvListView.SelectedItem.SubItems(1), vbTextCompare)        TextEnd = InStr(TextStart, strText, "$end", vbTextCompare)     strText = Mid(strText, TextStart, TextEnd - TextStart)     TextStart = InStr(1, strText, "$bio", vbTextCompare)        strText = Mid(strText, TextStart + 4) ' + 4 to skip $bio     Text1.Text = strText    End Sub


Thanks for any help.

Retrieving Data Of A Online DB
Can someone give me a example-code of a situation as described below:

I want to get tables/records from a database on the internet.
- Which hosting-site supports this for free (or low costs)
- Which way is the safest way to retrieve data from that location


I want to create a application that saves links to sites and pictures for multiple users (for example friends). So that a user can permit a other user to acces his/her links (or a few/group of links). And have a internal messaging system in it.

Well it's just a fresh idea.

I dont know if there is such a program (it a bit similar to a chatprogram) but I don't care. Is just for fun and experience in VB6 ( and communications/database I suppose). And to kill time when I can't create lots of decibels on my guitar in the late hours.

Retrieving Info
I have asked for help on just about every part of this program but at this point I am about brain dead due to illness and job stress so I am going to throw this out there and hope someone has some Xmas spirirt and helps a sickly man. Using a menu system the user will be able to retrieve (SELECT) records of students with a specified major, UPDATE (change) a student's major code, and DELETE a student record. To retrieve records, the user will be presented with an InputBox to enter the major code of records to retrieve. To update a record, the user will be presented with an update form that requests a Social Security Number and the new 3-digit major code. To delete a record, the user will be presented with a delete form that requests the user to enter the Social Security Number of the student whose record is to be deleted. The recordset resulting from any of these commands will be immediately displayed in the Picture control on the main form. I appreciate any assistance.

Thanks - Jason

Retrieving Info
Hi

I'm having problems getting this particular piece of information from our database, basically i'm getting my info through a piece function which is numeric but this item is pieced BARC

strPostcode = Split(sDataString, "*")(21)

strBarcode is BARC in the database, could someone point me in the right direction on how to get this value?

Thanks

Retrieving Info
Is it possible to let the users retrieve a text file from ANYWHERE on the computer, which then gets put into a text box?

Also, is it possible to save the text from a text box INTO a text FILE

thanks alot

chris

Online Game (Sever && Multiple Player Info)
I'm working on making my turn based game online with a central server and clients that can connect and play 1 on 1 using the server as a connecting point.

How should I go about keeping track of player info on the server (variables, udt, etc)?

While players play only 1 on 1 there will be many such 1 on 1 matchups going on at a given time. Also, I will later add in some additional online elements where players will be able to build a kingdom (this is not just 1 on 1).

Anyway, so how do I handle the information? Do I save it in files? Use a data base? I have no experience at all with data bases and don't really know how they work (as far as games go). So, if I can use files that would be spiffy. Probably shouldn't be more than a couple hundred player base I guess.

I'm working on making my turn based game online with a central server and clients that can connect and play 1 on 1 using the server as a connecting point.

How should I go about keeping track of player info on the server (variables, udt, etc)?

While players play only 1 on 1 there will be many such 1 on 1 matchups going on at a given time. Also, I will later add in some additional online elements where players will be able to build a kingdom (this is not just 1 on 1).

Anyway, so how do I handle the information? Do I save it in files? Use a data base? I have no experience at all with data bases and don't really know how they work (as far as games go). So, if I can use files that would be spiffy. Probably shouldn't be more than a couple hundred player base I guess.

Any specifics or basic code would be helpful as well. Thanks.

Any specifics or basic code would be helpful as well. Thanks.

Retrieving Info From ASP Post
Can anyone tell me how I can format this HTML code into an Inet "execute" or webbrowser "navigate" code, and retrieve the resultant info? Normally user enters a four digit number into the text box "id" on the website, and presses "submit". The form responds by opening a webpage in the same browser window containing the desired info

I have tried many methods, but I cannot figure it out. Also not sure how to send multiple post parameters. The data is not submitted in the URL itself (ie www.blah.com/get.asp?data=blah") as far as I can tell.


<form action="/get.asp" method="post">
<input type="hidden" name="action" value="Save Data" />
<input type="text" name="id" maxlength="4" /></td>
<input type="submit" value="Getlocation" />
<input type="reset" value="Clear" />

Retrieving Info From Web Browser?
My little VBA app is going to run under Excel and ideally will be interacting with one of our internal web-based applimacations which is used to monitor the status of ATM's. Using AppActivate and SendKeys I manage to activate IE and get our web-app's status request (Alt-S) performed, but that seems to be the limit of SendKeys's's power.

Once the status request is done, the webpage will display a string ("Up," "Ready for Up," "Down," "In Service," "Boot Failed," or others.

Is there any way at all under the sun for my VBA app to get that info off of the webpage? The farthest I can go is to sendkeys a Ctrl-F and search for the partickler status string that I'm hoping for, but the results of the Ctrl-F of course are not returnable to VBA.

(gasp! or ARE they...?)

Retrieving Array Info
Ok, if I have an array called A(X, Y, Z) and i ned to take the Y and put it ina control, how do I call/refer to the Y?

Retrieving Info From Webpage
hi
I use my vb project to log on to a web site
after putiing in username and password it takes u to another page from this page I want to copy piece of info and put into a textbox in my vb project.
the line of html code I found after using instant source is:
<TD>28,313 Gold </TD></TR>

I need this figure infront of the word gold put in my text box but the figure changes every 30 minutes so need the page to refresh and keep checking and updating the figure in vb project.

how do a go about trying to get this piece of info into my text box.

Retrieving Info From A Running EXE
Is there any possible way to retrieve the information from a textbox that is running in an another EXE?

The other EXE is also vb, but I do not have the source code.

Thank You

Retrieving DTS Package Info
hi gurus

my task is to create a app which creates a package on SQL server and then create a shedules to that task.

i am able to save the package..by SaveToSQLServer but i need to check if the package already exists..

i tried using objPkgRepositry.EnumPackageInfos which did not work.

i need to create a job and shedule the package any help or tips

regards

HELP ***Retrieving System Info***
I know that this has been talked about before but I lost the info..

What is the command to retrieve system iformation? Specifically which windows operating system..


Thanks for the help

RUdy

Retrieving System Info
I need VB to get a users system info all i need is
-HD space (total)
-HD space (used)
-Total Ram (if possable)
-Total Rom (if possable)
-The computers name
-The users name
-the users company

If i could get this info to that'd be great
-Running Programs
-Time since last shutdown (if possable)

any comments/hints will be appriciated!

Retrieving Internet Info
How is it possible to have users connect to a server, my server for example, and search for files?

An example would be, having users connect and then they can search through files which would contain song lyrics.

Retrieving Info From Txt Files
How would I make an application that could read information from text files in a directory? I already have a visual program that saves information (customer orders and info) to a different text file each time. Each text file is created with the order number in the name of the file (Customer Order ######). I want to be able to input a order number into a text box and have the contents of the text file show up in a list box on a button command.

Retrieving Info From The System
I want to extract the following information from the system:

*Windows build
*the volume number of the harddisk

Does anybody know how to do this?

Retrieving Web Info Into Excel
Hey guys, I have about 2300 pieces of data that I need to retrieve from the web. As of right now, I'm just going to the webpage and copy/pasting the data into a new column, but this is obviously very time consuming, so I wanted to know if anybody knew a way to retrieve this automatucally, so I can just set it and forget it.

http://cas.sdss.org/dr5/en/tools/explore/obj.asp?ra=188.6951&dec=3.00999

This is a sample of one of the webpages I'm using. I need the data that's called OBJID thats in the top line.

Any ideas folks?

Retrieving Info On Videocard?
Hey everyone, I'm trying to get info on the videocard, like the brand, driver installed, mb size etc. But after doing a lot of searching i couldn't find a any result on this using vb, my question is does anyone know how to, or has a url to a site that can get me started? Thanks at front for replies, bye.

Retrieving Combo Box Value/info
Hi, this may be a simple question, but i have a combo box filled with values from a DB, now in another sub of my app i would like to use this 1 selected value to control which info i bring in, ie which product to do a report on,

How do I call/retrieve the value from the ComboBox to put into an 'if' statement or a SQL query before i even pull more info in....below is the combo box code


Private Sub Combo1_dropdown()
Dim rs As Boolean
dbd = "driver={Microsoft Access Driver (*.mdb)}; " _
& "dbq=" & App.Path & "DBbilling.mdb"
rs = Get_ComboBox_Info(dbd, rstXYdata)
Do While Not rstXYdata.EOF
Combo1.AddItem (rstXYdata![Product_name])
rstXYdata.MoveNext
Loop
End Sub

Retrieving HTTPS Page Info
How can I retrieve the server response info from an HTTPS page (CGI)? In the page I have a login form, and I only need to retrieve the server name which is shown just before the username and password fields.

UPDATE:

I'm now using this with the the Inet control which supports HTTPS to attemp retrieval of the login page:


Code:
Inet1.AccessType = icDirect
Inet1.Protocol = icHTTPS
Inet1.RemotePort = 443
Inet1.URL = txtURL.Text

rtbMain.Text = Inet1.OpenURL
But this doesn't return anything for the https pages... it does return the server error page when using the "http://..." address, which is refused by server, but nothing for the https page. Could this be because the server provides some kind of certificate which must be accepted before attemp the login?

Retrieving Info Using ComboBox Input
Good Morning!
I was hoping someone can help me! I am working on a project and have hit a snag. I have a database form set up where a user can browse through and update records. I wanted to set up some sort of control that would allow the user to pick which record they wanted to look at instead of going through each one individually.

I set up a combo box that I populated with four columns of information for the user to see and choose from. One of the columns is a subscript field that I was trying to pass into a SQL Query to populate the text boxes on the screen. However, I can't get it to work. Here is some of my code.

Private Sub Combo3_LostFocus()
Dim sString As String
Dim sString2 As String
Dim sString3 As String
Set cnCapco = New ADODB.Connection
Set rsResults4 = New ADODB.Recordset
cnCapco.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:Program FilesMicrosoft Visual StudioVB98Capco.mdb"
cnCapco.Open
sString = Combo3.Text
sString2 = Mid(sString, 15, 2)
sString3 = Val(sString2)
SQLQuery = "SELECT JobNumber, ItemNumber, Description FROM ItemBreakdown WHERE DescSub = sString3"
rsResults4.Open SQLQuery, cnCapco

txtFields(0).Text = rsResults4(0)
txtFields(1).Text = rsResults4(1)

Any help would be GREATLY appreciated!

Kristen

Retrieving Info From Related Tables
Newbie question for the experts out there...

I have an Access .mdb with mulitple tables, all related by a unique key.
I need to populate some VBA userforms with info from various tables and was wondering what the best way was to do this.
Should I be opening and closing recordsets to access the different tables?

TIA, Joni

Retrieving System Hardware Info Through API
Hi All,

I am currently looking at retrieving hardware information through some APIs using VB6. If you have any code or links to help me out. Pls do send them across to me.

Thanks n Regds.
Noel

Saving && Retrieving Info In Textboxes
I would like to take user info into a textbox. I use that info for a simple chart I made with lines. When I exit the program, all info is lost. I am charting info over a period of time.
How do I save and load previous entered info. My chart depends on it?

Retrieving Info On Executed DOS Program
Hello,

I execute a DOS program using the shell command.
When that program has finished it displays text in the DOS box. How can I see what text this is?

Thanks a lot...

Storing && Retrieving Info From A: Drive
The user is selecting what items they want and how many of each they want. This info is to be used with info stored on a: drive, to see if there are enough available ansd if so, how much is the total cost. I am using a listbox and menus to accomplish this. Need help with coding the menus to perform these tasks. I have a an .exe of what it's supposed to look like.

VB And SQL Using Access - Retrieving Info Within A Certain Timeframe
Hi,

In an database holding online chat conversations I am trying to select messages from a table in my Access 2002 table called 'Message' which were sent in the last 10mins, in the last hour or in the last month. This database is used for analysing data on a real-time online chat conversation so the user needs to be able to run these querys

The fields in the table it needs to retrieve are User and Message based on the Time field.

I'm not sure how this would work? I think it would have to know the time that it is now automatically and then deduct 10mins, one hour or a month and then select the messages and user who sent messages in that time displayed in an Access form.

Im new to VB and SQL so dont really know how to do this or how they link together in Access, would anyone be able with help me with this?

Any help would be greatly appreciated.

Thanks
-x-

Retrieving Info About Access Forms
Hello, Im am using this piece of code to fill a ListView activex control.


Code:

Dim frm As AccessObject

For Each frm In Application.CodeProject.AllForms
lsvMyForms.ListItems.Add , frm.Name, frm.Name
Next


The problem is that I would like to fill item keys with frm.Name, and item text with form comments you see in main Access object browser. (the "Description" in the picture)

Since I don't find it as a property in AccessObject what I have to do???

Tnx, Andrea

MAPI...Retrieving Another Users Info
Dear Gurus,

I need to retrieve another users EMail Address from their login (e.g.: dmadden).


Thanks in advance,

Dan

Dynamically Retrieving Info From The IE App Object??
Hi,

A few years ago I worked with someone who wrote a DLL which was physically located in the Program FilesInternet Explorer folder. The result was that whenever IE was used on the computer this DLL was somehow hosted and 'intercepted' the URL being navigated to. He then passed this as a parameter to a crudely built web service.

Unfortunately I cannot get hold of the guy that wrote this, but I am desperate to try and recreate it. I have no problem passing the data externally (for instance to a web service) the problem I have is how to start writing the DLL to be hosted by the IE application. Can someone point me to the relevant resource please?

Regards,

Mark

Retrieving Calander Info From Exchange Server
I am interested in writing an app that will retrieve a user's information from the calander that lives on an exchange server.

App will know the following and be able to get all appointment and meeting data:
Exchange Server
Login
Password
Date to retrieve



Any Ideas?


Thanks,

Retrieving Security Center Info (hWnds, GetWindowText)
Problem solved...see edit #2.
Also, does anyone know of a way of opening the window without the user actually seeing it? Something about pipes or something else similar? I'm not sure. Because I mean they might as well open it up themselves and just read the window otherwise (which would make this program useless =).


Hi everyone. For my program, I want to be able to show the user what firewall they are currently using as well as other types of information about their computer. To do this, I am going to open the Windows Security Center window and then grab the text from a label/caption in the window.

EDIT:
Here is the application's Spy++ diagram:
http://img406.imageshack.us/img406/859/targetyb0.png
If you take a look at my code, I can get a hWnd for hWndChild4 variable. However, when I use GetWindowText on it, it returns 0.
What could be wrong?
EDIT #2:
Nevermind, the code actually works. I just forgot to add the *256 to the FirewallBuffer string.

This is my code so far:

Code:
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Private Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long
Private Sub Form_Load()
Dim hWndChild1 As Long
Dim hWndChild2 As Long
Dim hwndChild3 As Long
Dim hWndChild4 As Long
Dim FirewallBuffer As String * 256
Dim Firewall As String
Dim CtrlID As Long

hWndMain = FindWindow(vbNullString, "Windows Security Center")
hWndChild1 = FindWindowEx(hWndMain, 0&, "ATL:4FAE8358", vbNullString)
hWndChild2 = FindWindowEx(hWndChild1, 0&, vbNullString, "Security essentials")
hwndChild3 = FindWindowEx(hWndChild2, 0&, vbNullString, "Firewall")
hWndChild4 = FindWindowEx(hwndChild3, 0&, "ATL:4FAE8088", vbNullString)
Firewall = GetWindowText(hWndChild4, FirewallBuffer, 256)
End Sub

How To Put Your Exe File Online
how to put our exe file onto our webpage?

Online Txt File
Hi, I made this(but it doesn't work):


VB Code:
Private Sub Command1_Click()Open "http://www.site.com/myfile.txt" For Input As #1Input #1, MyVarLabel1.Caption = MyVarEnd Sub


This is the error:
"Bad filename or number"

Is there a possibility to connect to the online file?

Thnx

Reading A Txt File Thats Online
is there any easy way to read a text file that i can put up on a webserver?

i am making a weborder form for my dads business that puts input onto a text file on the webserver and i want to be able to read that file and input the orders into listboxes and junk

i really just need a way to open that file

i tried open "http://domain.com/filename" for input as #newfile

but it gave me a bad filename error and i knew it was there


any help is appreciated

How To Save To An Online XML File With VB6?
The situation:
I've accessed an online XML file from within VB6, as per my previous post here. Now the XML file resides in memory, and necessary changes can be accomplished.

The problem:
After the completition of such changes, how do you "save" this file to it's original location online?

I've tried two methods:
1)Use the XMLDOMDocument.save method to save to it's original online location. This doesn't work, nor did I expect it to, as this method is for local files.

2)Using the POST argument of the XMLHTTP.open method, to send the XML contents of XMLDOMDocument. This does not work.

Possible Questions:
Are the folder permissions for the online location set to allow for write?
Yes. I have a folder called "XML" that write permissions have been allowed on.

Are you sure the changes were made?
Yes. This was the first thing I checked when the file didn't seem to save properly. I simply added the line Debug.Print xmlDoc.xml, and indeed the changes were displayed in the XML shown in the Immediate Window.

Code for the second attempt above:
First, I've connected to the online file as mentioned in my previous post (link can be found above). I have then altered the text of the element I wished to alter. Here's the "upload" piece of code.

Code:
Set xmlURL = New XMLHTTP
xmlURL.open "POST", "http://www.domain.com/xml/test.xml", False
xmlURL.setRequestHeader "Content-type", "text/xml"
xmlURL.send (xmlDoc.xml)

Anyone know why this doesn't work, or how you go about doing this shy of including the FTP control to upload it? I was under the impression you could do such uploads with XML files, and if so that is the way I would like to do it. I'd rather not have to use the FTP control....

Thanks,
John Watson

How To Parse An Online XML File From VB 6.0?
The situation:
I have a clientside Visual Basic 6.0 program that I want to access/parse an online XML file. This file will be located at an address something like: http://www.domain.com/xml/file.xml

How do I go about loading this file? I know how to load one from a local directory (I.e.: C:xmlfile.xml) but I can't figure out how to parse an online file.

A follow up question...but isn't nearly as big of a deal, what if I have the permissions of the online folder set so that it can't be browsed (i.e.: You can't load that same xml file in Internet Explorer and view it). I would guess that you couldn't, then, load it up and prase it in VB? If not by the "standard" way (whatever that is) is there another way to do it, aside from doing an FTP request to actually download the file?

The most important thing is being able to access an online file...if anyone can help with that, great! The problem of having it in a "secure" folder is not a big thing, I can work around that...

Thanks,
John Watson

Online File Access
Hey guys,
I am not exactly sure how to gather my variables from an *.ini file that is stored online. Can someone give me some insight. I have my *.ini reading and writing good but if I change the path to be online then I get errors. I am also trying to load an image into a imagebox from an online folder and can't get that to work. Any help would be great. Thanx in advance.

Online Output From Exe File
Hi,

I have no idea if this can be done...

I have some freeware which is an exe file. The software, found at http://www.fluxus-engineering.com/sharenet.htm accepts genetic data in the form of a simple text file, performs a statistical manipulation on the data and then outputs this data to another text file. The information in this new text file is then used to graphically plot the results in the form of inter-connected circles on a page.

It is possible to simply run this software offline and input the data, perform the manipulation and then post the resulting image online.

HOWEVER, what I would like to be able to do is to perform this all online, so that the data is dragged from a database, manipulated and the image plotted and placed on a web-page in real-time. I would assume that the software needs to be running on the web-site server.

Any ideas on how this could be done (if at all) would be very much appreciated. I can provide examples of text/output files if needed!

Cheers,
Alski

Online Text File
There's a text file online that I would like to download straight into a Rich Text Box. The problem:

The text file is 56mb ... its a Chat Room log which is continuously added to all the time. What I would like to do is grab the a user-defined amount of lines from the END of the text file. Or it could be the start, not sure :-)

Any suggestions?

Size Of File Online
theres a few files, particularly mpeg and avi files taht are on a remote server, i want to get the filesize for them, and then download them.

whats the best way?
thanks

See If File Exists Online
what would be the best way to see if a file exists online?

thanks,

Dimava

Api To Get Filesize Of A Online File?
IS there anyway of checking the size of a file that is online? i am using api to download files but i also want to check when it is ready and how the progress is...

Best Way To Get An Online File To Read It
What is the best way to get a info from a single file online? I have recently made an media player with loads of stuff. but i get loads of requests and some bugs, so I will update it sometimes. i want to put a online file (a simple txt file is ok) that contains the Current online version number.. when the program starts i want it to get that file and read the number and check it with its own version number if not the same it will tell the user there is a newer version

Online File Manager
there are a lot of websites that offer free space (geocities, etc.), and you edit your website and manage your files through their website also. i am making software that allows you to do this same thing through my service (when done). Would it be easier to use a database for this or a type of file manager that they have ... and if file manager, then are there any examples on implementing this in vb?

in the end it will be for people who want to open their own online store (service will be free when done) and they will create their ad listings offline (like mr. lister for ****, and similar programs). when online they can post 100 or something items to their store and into specific categories.

yes, it will be free. i see all the time people ask for help here and then will sell their software / software and service. whoever helps in that case should get paid (right?

thanks,
corey

Copyright © 2005-08 www.BigResource.com, All rights reserved