Results 1 to 7 of 7

Thread: [RESOLVED] Writing data to a file presented in some other machine in network.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    167

    Resolved [RESOLVED] Writing data to a file presented in some other machine in network.

    Hi All,
    I would like to writ one application in VB 6.0, which will write some data to a text file that is presented in some other machine (That other machine is in network).

    Can any one just tell me whether it is possible or not?

    Please suggest me how it can be done, in case it is feasible.

    Thanks in Advance....

  2. #2

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    167

    Re: Writing data to a file presented in some other machine in network.

    I will try to explain my requirement.

    Five to six users need to access(Read/Write) some data (about two are three words) from a particular machine. For this, I need to write an application.

    I can do it by using any data base (Client- server application). But here the application is very simple, and the data is very very less.

    So, my idea is why don't i use a text file which is located in a mchine in network ( if it is possible)?
    But i am not sure, whether i can do read/write operations in a text file that is in remote machine.

    Can any one just suggest me, whether it is feasible or not?

    Thanks....
    Last edited by raghunadhs; Jul 7th, 2009 at 03:07 PM. Reason: for better clarity

  4. #4
    Fanatic Member sessi4ml's Avatar
    Join Date
    Nov 2006
    Location
    Near San Francisco
    Posts
    958

    Re: Writing data to a file presented in some other machine in network.

    create a common file on one pc using 'Administrative Tools'--> ODBC ...a text file.

    and open this link...to the file..

  5. #5
    Hyperactive Member
    Join Date
    Jun 2007
    Location
    Kerala, India
    Posts
    275

    Re: Writing data to a file presented in some other machine in network.

    I have used something like this.

    Code:
    Open "\\computer01\sharedfolder\xyz.txt" for append as 1
    Print #1, "abcdef"
    close 1
    Here computer01 is the name of the computer having the textfile,
    sharedfolder is the name of the sharedfolder containing the text file and xyz.txt is the name of the text file.

    The users must have proper access rights for the folder.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    167

    Re: Writing data to a file presented in some other machine in network.

    Thanks SVG3414 & sessi4ml.
    I will try this, and let you know the feed back.
    Thanks once again...

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    167

    Re: Writing data to a file presented in some other machine in network.

    Hi SVG3414 & sessi4ml
    It is working fine. I used machineName\Sharedfolder\TextFile.txt, like what svg3414 suggested.
    Thank alot. Sorry for the late reply..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width