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




Uploading Text From A Notepad File Onto Geocities??


Hi,

How do I upload text from a notepad file onto geocities(ftp://ftp.geocities.com)? Does it have something to do with the Inet control?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Uploading Txt File To Geocities Account
hello

i know its alot to ask and it cant be simple, i dont even know if its possible.
but i want to make a vb application that saves the text i write into a txtbox to a .txt file (ive done this)
but i now want it to upload to my website on my geocities account.

can anyone help me with this?

any help is always appreciated.

thank you

Uploading To Geocities?!?!?!????????
Hello,

I am having problems uploading my zipped application to geocities. I am using the uploading page in the geocities website manager. I select my .zip application which is 1.5 MB, and click upload. The page then looks like its uploading my zip, but it doesn't. Why won't it upload??????

Uploading Help With Geocities
I am having trouble uploading my zipped app to geocities. I use frontpage 2000 to upload my site, but when it gets to the part where it uploads my app.zip it says that the server unexpectedly stopped the connection to geocities. why does it do this???? Geocities says it supports zips.

thanks in advance

Uploading My App To Geocities...
Hello,

I want to upload my app to geocities webhoster. the standard way of uploading my app from the web browser does not work. I have my app in zip form, but it says it supports zip. i tries uploading it manually through DOS but i get a message saying that it is the wrong password even though its the right one. I know geocities should let me upload my app because i've seen other people's sites with their downloadable programs. Someone said that there is a way to upload my file from html, but how do i do this? also, why isn't my app uploading?
thanks in advance

Uploading To Geocities.com
Hey !

I'm trying to make a program that takes a low-reslution snapshot from my computer every 1 min and uploads it to a free-server site ( geocities.com ). I tried using FTP but it didn't work because on geocities free servers, FTP is not supported. Does anyone have any idea how can I upload the files to the server ??
Thanks
Peace out

Uploading A Text File W/ HTTP In VB6.
Hi. I think this is a pretty easy thing to do, but I'm kind of going around in circles.

I have a VB6 app that prepares a flat file and then uploads it via FTP to our webserver. Works great, but more and more users are having trouble w/ firewall settings, etc. Some flat out can't do FTP transfers.

It seems to me that it would be better to go w/ an upload via HTTP. The server we are on does not allow the HTTP PUT command. Is there another way to do this? With POST?

Any help pointing me in the right direction would be great. Thanks.

Copy All Text From Textbox, Open Notepad, And Automatically Paste To New Notepad Shee
Hello everyone.

I am trying to copy all text, that is already in the textbox, to a new notepad sheet.

Example:

Step 1. Copy all text in Text1 box to clipboard.
Step 2. Open Notepad
Step 3. Paste clipboard to notepad.

All this should be done with one click of a button.

I get as far as copying everything to the clipboard, and it even opens up notepad, but I still have to manually paste (CTRL-V) into notepad.

I would even like it to ask me what name to save it as as well as where to save it at...just like the Save As function in Word or something.

Here is what I have so far.

Private Sub cmdCopytoClipboard_Click()
Dim MyAppID
Clipboard.Clear
Clipboard.SetText Text1.Text
MyAppID = Shell("NOTEPAD.EXE", 1)
AppActivate MyAppID
MyAppID = Clipboard.GetText()


End Sub

Can I Copy Excel File To Phase On Notepad Text File By Script??
Hello, I want to know that can I copy the excel file to notepad text file automatically????? By script,ok??

Open Text File With Notepad
I would like to open a text file with notepad or wordpad. I tried the shell-function. But that doesnt work.

bool = Shell(notepad "hallo.txt")

It once worked but I forgot how...
Please help!

Anita

Opening A Text File Using Notepad
I've made a help text file that I want to be accessed through the menu, and when the menu item is clicked. I'd like the text file to be opened in Notepad while my Visual Basic program is still running, similar to what would happen if you double clicked the text file in Windows Explorer. What sort of syntax do I need to use?

Open A Text File (in Notepad) From VB
Hello,

I want to open a specific text file from within VB. For example, by clicking a button. I have tried ShellExecute..but it does not seem to work.

Help.

Thanks!

Open Text File In Notepad
My application generates a number of .Log files. All are standard text files that I can easily view in Notepad. What I'd like to do is add a menu item which, from within my program, my user to open them and view them, in notepad. I've tried:
VB Code:
Shell "c:myfoldermylog.log", vbNormalFocus'and I have triedShell "notepad.exe c:myfoldermylog.log", vbNormalFocus
And neither one works. What am I doing wrong?

Open Text File With Notepad??
I've tried to open the text file with notepad with the
following command


ShellExecute(Me.hwnd, "open", "c: emp
eadme.txt", 0&, 0&, SW_SHOWNORMAL)

but it wouldn't do anything, I'm pretty sure in the register, the txt file is associated with notepad

Any idea?

Thank you in advance for any help!!

Open Notepad And Display Text Which Isn't In A File
How can I open notepad and display text which isn't in a file?

My prog processes an input file to create some output text.

I have a button
"open in notepad"

I want it to open notepad with the text but with no file name, as though a "new " had been selected from the File menu.


Thanks

Open Notepad To View Text File
Can anyone please give me the code to open an existing text file to view in Notepad? Thanks in advance.

Question On Parsing Notepad Text File With VBA... Please Help
I just got tasked this at work and have a few questions. I found some code from someone at work that did something similar to what i am doing now. Essentially i have a document with requirements in it and some of those requirements have data that refers to definitions as well as some tables. The code that i had originally parsed through the requirements in notepad ( the person copied the relevant information into notepad and then ran his VBA code on that). I decided not to use the way that he did this because he took the information from the notepad file put it into Excel (through VBA) and then manually imported it into one of the applications that we use here. I want to write directly to the application rather than doing all that intermediary stuff. So i tried running my code, it opens the word file but then bombs out on the following line:

    Do While Not EOF(1)

What is the syntax to perform this using Word VBA, since this was originally done on a text file? The error that it gives me is: Run-time error '52': Bad filename or number.

Here is a blog of the code:
For k = 1 To 1
    Do While Not EOF(1)

        Line Input #1, textReq
        
        If (InStr(textReq, "3") = "1") Then
            If (name <> "") Then
                'exDocument.Worksheets(k).Cells(i, 1).Value = name
                'exDocument.Worksheets(k).Cells(i, 2).Value = description
                'exDocument.Worksheets(k).Cells(i, 3).Value = Rationale
                i = i + 1
            End If
            reqnum = Trim(Left(textReq, InStr(textReq, Chr(9)) - 1))
            name = "IC - " & reqnum & " " & Trim(Right(textReq, Len(textReq) - InStr(textReq, Chr(9))))
            Rationale = ""
            description = ""
        ElseIf (Left(textReq, InStr(textReq, ":")) = "Rationale:") Then
            Rationale = Trim(Right(textReq, Len(textReq) - InStr(textReq, ":")))
        'Else
            'description = description & Trim(textReq)
        Else
            description = description & Trim(textReq)
        
            If (Left(textReq, InStr(textReq, ".")) = "Table 3 " & tablenumber) Then
                tablenumber = tablenumber + 1
            End If
        End If

    Loop

Essentially all i want to do is search for a string of numbers (the requirement number) and the name is appended after that. Everything else until the next requirement number is either Rationale, description or a table. Currently the code shown was able to handle the Requirement number, rationale, and description and did not have any tables in it. The new document that i have received now has tables. What would be the easiest way to get those tables out of word and into our application. I was told to format the information using html or xml tags when a table is discovered in word and put it into our applicaiton that way. This way when the information is pulled back out of the application and into another word document it is already formatted and is readable, rather than being a continous text string which is what it looks like now when it is pulled out. I know that this is probably a bad description but i didn't want to go into all that much detail. If anyone can help me out on where to get information or some ideas i would really appreciate it.

thanks
Evan




Edited by - goodolE22 on 5/18/2004 8:05:00 AM

How To Save The Information To A Notepad Text File
Hai,
I have certain information, i need to create a new notepad text file and save the information to that note pad text file, how do i do that. Please help me, Thanks in advance...

How To Save/read Textbox Text To/from Notepad File
Pls show me that how to save/read textbox text to/from notepad file. urgent please help me......

Showing The Content Of Notepad File In A Text Box Control
Hi all,

Hope all in fine tune. Here I am uploading a text file. What all I need is that I want to show the content of the file in text box control of a form with multiline set to true and scroll bars to both. But the contents are coming in the control but are compressed to a new line and the alignments are going off. My requirement is to show the contents exactly in the same way as it appears in the notepad file when maximized.Please help me as a project is withheld for this code.

Help me Plzzzzzzzzzzzzzzz

Thanx in advance

Text File Opening In Notepad Want To Open In Winword
Anyone

I've created a file in note pad
basically i want to open that same file in winword
How do i do it ?

Open "s.txt" for input as #1
Do until EOF(1)
Line Input #1, TMP$
Loop
Tmp$ = Tmp$ + vbcrlf$
CLose #1

Regds
Sam F

Is Any Api Function To Open Text File In The Already Launched Notepad.
Hi,

Is there any api function to open the 'c:abc.txt' text file in the already launched 'Notepad.exe' application.
Please give ur technical solution straitaway.

Note: without using the sendkeys() function.


Advance thanks
Adesh.
adesh@kmap.biz,adesh_y@yahoo.com

Open Dialog To Open Text File With Notepad?
Hello,
Can someone please help me to open a text file with the Common Dialog control? I have seen your tutorial and it makes sense, but it uses a rtb control instead of opening the file with notepad as i would like.

HERE IS CURRENT CODE:

(Other properties were setup in properties pages)

Private Sub Command1_Click()
cdlOpenFile.Filter = "Text File (*.txt)|*.txt|All Files|*.*"
cdlOpenFile.ShowOpen

End Sub

THANKS!!!

Uploading And Downloading Text...
Hi

Part of my prog that I'm making uploads, and downloads text from notepad files onto a geocities. The text is in a specific order... If I download the text back into a notpad file, will it say in the same order?

Most Efficient Way Of Uploading Text Several Times
I have a computer running day and night (will be used as a server in the near future). This computer logs everything on our little irc channel. I would like to publish these logs on the net + adding some statistics. My main problem is the uploading of the log (the log from april 24 till now is 2MB large). I want it to be done realtime (or as close as possible without stressing my internetconnection to much), so uploading the whole file each time again would be a no go. I thought of 2 solutions.
1. I make the log available on the server itself, but accessing will be slow, I upload at 192kbps
2. I just make a (very) large database on the web, and I continiously add the lines that weren't online yet. But this seems somewhat complex, and because I don't know anything of databases, this would be a long project...

I have a feeling that there is a better approach, please tell me if so. Otherwise, just post your comments on my idea

Uploading/downloading Text From A Webpage
Hi

How do I upload text from a textbox in my prog to a blank webpage space(with a blank .txt file to recieve the text) using the Inet control? And vice versa. how do i retrieve text from the .txt file online to a textbox in my prog using the Inet control?

Thanks in advance

Uploading/downloading Text From A Webpage
Hi

How do I upload text from a textbox in my prog to a blank webpage space(with a blank .txt file to recieve the text) using the Inet control? And vice versa. how do i retrieve text from the .txt file online to a textbox in my prog using the Inet control?

Thanks in advance

FTP - Uploading And Downloading Text Files..?
Ok,

Does anybody know how to connect to an ftp server and then goto a dir and downloada file?

ftp info could be say:

server: ftp.cheekoserver.com
username: cheeko
pass: cheekrocks

How would i connect to that ftp server and then go to a directory called 'cheeko' and downloada text file called 'isntcheekosexy.txt' into my app.path?

I figuring i need to use winsock (arent iclever? ) but thats about it.. Any code examples?

Cheeko

Help - Uploading And Combining Text Files...
If a user has a text file on their computer (scanned.txt), how would i upload that and add it to the scanned.txt file located there? (as in add it to whats already there..)

Web- Based Chat Server (Geocities)
Hi,
I was wondering if anyone could tell me how to put a chat server on a Geocities site and run it continuesly. I am making the server in visual basic 6.

I am also going to make a client to connect to geocites and use my server as a chat room
any help would be appreciated.
Thanx

Reading Excel File Using Vb6 And Uploading The File In The Database
good afternoon,
im creating a project that requires an excel file to be
read in VB6 and uploading it to the database.
i have successfully done the reading of excel in VB using fso but now,
the problem is i don't know how to upload this file in the database
and to make a checkpoint whether the data in the file is already in the database.
i've been trying so hard on this project for weeks but
can't get the answers.
please help me with my codes.

thank you so much in advance for your prompt help

btw, here's the code for reading the excel file

Dim cnncomp As ADODB.Connection
Dim rstcomp As ADODB.Recordset
Dim fso As Scripting.FileSystemObject
Dim lngrow As Long
Dim lngColumn As Long


Set fso = New Scripting.FileSystemObject

If (fso.FileExists(App.Path & "PcompList.UDL") = False) Then
MsgBox "ERROR: DSN / UDL file does not exist"
GoTo CLEAN_UP
End If

If (fso.FileExists(App.Path & "PcompList.xls") = False) Then
MsgBox "ERROR: Database file does not exist"
GoTo CLEAN_UP
End If

Set cnncomp = New ADODB.Connection
Set rstcomp = New ADODB.Recordset

cnncomp.Open "File Name=" & App.Path & "PcompList.UDL"

rstcomp.Open Source:="SELECT * FROM ""Sheet1$""", ActiveConnection:=cnncomp, CursorType:=adOpenStatic

If (rstcomp.BOF = True) Then
MsgBox "ERROR: no records in the database!"
GoTo CLEAN_UP
End If

rstcomp.MoveFirst

If (rstcomp.RecordCount = -1) Then
MsgBox "ERROR: record count = -1. Is the cursor type set incorrectly on the recordset open statement?"
End If

MSFlexGrid1.Rows = rstcomp.RecordCount + 1
MSFlexGrid1.Cols = rstcomp.Fields.Count

ReDim Components(0 To rstcomp.RecordCount - 1)

Call WriteGrid(0, 0, "wistron p/n")
Call WriteGrid(0, 1, "description")
Call WriteGrid(0, 2, "vendor")

MSFlexGrid1.ColWidth(0) = 1250
MSFlexGrid1.ColWidth(1) = 1250
MSFlexGrid1.ColWidth(2) = 1250


lngrow = 1
While (Not rstcomp.EOF)
For lngColumn = 0 To rstcomp.Fields.Count - 1
Call WriteGrid(lngrow, lngColumn, chknull(rstcomp.Fields(lngColumn).Value, ""))
If (lngColumn = 0) Then
Components(lngrow - 1).ProductName = chknull(rstcomp.Fields(lngColumn).Value, "")

lstProductName.AddItem chknull(rstcomp.Fields(lngColumn).Value, "")
Else
Components(lngrow - 1).Ingredient(lngColumn - 1) = chknull(rstcomp.Fields(lngColumn).Value, "")
End If
Next lngColumn
lngrow = lngrow + 1
rstcomp.MoveNext
Wend


CLEAN_UP:
If (Not (rstcomp Is Nothing)) Then ' see if recordset was set
If ((rstcomp.State And adStateOpen) = adStateOpen) Then ' see if recordset was opened
rstcomp.Close
End If
End If
If (Not (cnncomp Is Nothing)) Then
If ((cnncomp.State And adStateOpen) = adStateOpen) Then
cnncomp.Close
End If
End If
Set fso = Nothing
Set rstcomp = Nothing
Set cnncomp = Nothing

End Sub

Uploading Image From Sqlserver Database As Text
hello
        Somebody could help to me retrieve image in sqlserver database, the image save by foxpro into sqlserver database but upon it was converted to text from image data. Now how I can i retrieve this image from sqlserver that the datafield is text in sqlserver? pls help



 

Uploading Image From Sqlserver Database As Text
hello
        Somebody could help to me retrieve image in sqlserver database, the image save by foxpro into sqlserver database but upon it was converted to text from image data. Now how I can i retrieve this image from sqlserver that the datafield is text in sqlserver? pls help me

Arnold



 

Uploading A File
hello all i am using vb6. i need an easy way to upload a file to a web site, how ca i do it any help.. plz if u know can u provide a small example ?

Uploading File To FTP
Hey,
I'm a noob at codeing.
So im trying to upload a file to FTP and add random numbers to the name of it.
Does anybody have a code that will do this?

Uploading File Tp FTP
Westconn have given me a code to upload file to ftp. He also checked it from his pc.I also provided him my username and password. The file is uploading from his pc but there is an error at line "if not ret=1 rthen stop. I am uploading the project. Please check it.

Uploading File To Ftp
I am receiving error in the following code. This is a code to upload files to ftp server.


Code:
Private Sub Form_Load()
'Server Access type
Inet1.AccessType = icUseDefault

'Protocol to be used
Inet1.Protocol = icFTP

'Remote host name
Inet1.RemoteHost = "ftp.avi-bags.com"

'Server port number, usually its 21
Inet1.RemotePort = "21"

'Server password
Inet1.Password = "passsword"

'Server Username
Inet1.UserName = "username"

'Server session timeout
Inet1.RequestTimeout = "60"
End Sub

Private Sub Command1_Click()
'Uploading file to server
'PUT method is a command in FTP to upload file to a server
Inet1.Execute , "PUT ""c:vivek.txt""" & "vivek.txt"
MsgBox Inet1.ResponseInfo
End Sub


The error is "Unable to connect to remote host". I have also used ftp://avi-bags.com. But i am getting the same error.

FIle Uploading
hi,

ive been trying to find tutorials of using VB / Asp to create a file uploading system which is preferably in an active X control.

does nay1 know of any tutorials / examples??

many thanks.

Uploading A File
hello all i am using vb6
i am using this code to download a file
VB Code:
Private Declare Function URLDownloadToFile Lib "urlmon" _Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, _ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As _Long) As Long Public Function DownloadFile(URL As String, LocalFilename As String) As Boolean    Dim lngRetVal As Long    lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)    If lngRetVal = 0 Then DownloadFile = TrueEnd Function Private Sub Form_Load()    'example by Matthew Gates (Puff0rz@hotmail.com)    DownloadFile "http://www.freewebs.com/ziad_jabbour/mytext.txt", "c:downfile.txt" End Sub
what code should i use in order to upload a file over the net
plz provide me with some information and if there is an easy way like this or should i use a control ( provide the control name ) and the cose that should i write

Uploading A File Through Ftp?
Does anyone have a simple source, just to upload a file to a ftp server? That's all I need, nothing fancy. Thanks.

Uploading A File
We have customers that will use a program that I am currently working on to build complex orders. I have that order exporting from an access database to an xml file on the client machine. Now I need to get it to our servers and into the order databases.

I was thinking of using FTP to our servers and then processing it somehow (any suggestions?) or sending it via email to our exchange server and then having an event process the order when it arrives. Any suggestions? How would you recommend doing it? Feel free to suggest another method.

Thanks!

Uploading A File
How do you upload a file???

File Uploading
        In my Vb project , I need to upload a mdb file from given location in Local machine to web.
how it can be done in VB. If any one Know ,send reply immediately, it is urgent Plz

With thanks
Sav2p1y

UPloading A .xls File In VB
How can i Upload a spread sheet to a oracle database using vbforms... Can any one help me?

File Uploading Using ASP!Help!!!
Hi,
I am currently working on a web site which allows users to submit images over the internet. I have to use ASP along with SQL Server.

I understand that a component needs to be created which is going to reside on the server and that component has to be called in ASP file. I need some help with builiding that component.

As of now I don't have a clue what I need to do to allow a user to upload an image so that it gets stored in the database.

I would really appreciate it if someone could help me out.

Please somebody help me!!
Thank you

File Uploading!! Somebody Help Me PLEASE!!
Hi,
I am currently working on a web site which allows users to submit images over the internet. I have to use ASP along with SQL Server.

I understand that a component needs to be created which is going to reside on the server and that component has to be called in ASP file. I need some help with builiding that component.

As of now I don't have a clue what I need to do to allow a user to upload an image so that it gets stored in the database.

I would really appreciate it if someone could help me out.

Please somebody help me!!
Thank you

FIle Uploading Using VB
Hi Genies

I am very new to VB. I would like to upload the file from one server to another using VB and HTTP. Is that possible ?

How can i achieve this ? Please direct me to some useful links.

Thanks
Shan

Automating File Uploading
Hi,

One good use of visual basic is to automate various acts on the web.

However, there is one element I cannot automate. The file element. The sort of element we use to upload files to the web.

How can I automate that?

Uploading File To Server
Hello. I need some code. What is the code for a client and server to upload file to server and then run the file using the client? Thank you in advance!

File Uploading Query
hi,

I have prepared one application in which i have to upload a picture and save it in database. Later when i want to view that picture i will call it from database and the picture should be visible in the picture box area defined by me.

Now for uploading the photograph i have written this code

visual basic code:
Private Sub cmdChUpdPhotograph_Click()
Dim mPhotopath as String
cdlgPhotograph.Filter = "Bitmap Files (*.bmp)|*.bmp|JPEG Files (*.jpg)|*.jpg"
cdlgPhotograph.ShowOpen
txtPhotograph.Picture = LoadPicture(cdlgPhotograph.FileName)
mPhotoPath = cdlgPhotograph.FileName
End Sub



For viewing i have wriiten this code

visual basic code:
Private Sub CmdOpen_Click()
On Error GoTo Hell
Dim rsCDetails As ADODB.Recordset
Dim CDetailQuery As String
CDetailQuery = "SELECT * FROM client_profile WHERE serialno = '" & lvwclientprofiles.SelectedItem.Text & "'"
Set rsCDetails = OpenRecordSet(CDetailQuery)
With frmClientProfile

.txtPhotograph.Picture = rsCDetails(9)

End With
Exit Sub
Hell:
MsgBox "Description: " & Err.Description & vbCrLf & _
"Number: " & Err.Number, vbOKOnly + vbInformation, "Error - Called from " & Me.Name & " Sub Form_Load"
End Sub



Now is the correct way of uploading and viewing the a picture. I am a little confused.

Guys please guide me through this

regards,
kaushik

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