Results 1 to 14 of 14

Thread: PC networking or something

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Location
    I'm right here!
    Posts
    849

    Post

    Can anyone tell me how can I open a file on a comp'
    and displaying his output on my computer without
    downloading it?
    I mean with a code of course.

    [Edited by dekelc on 10-10-2000 at 04:42 PM]
    Dekel C.

  2. #2
    Guest
    I think this would do:

    Code:
    Open "\\hostname\drive\file.txt" For Input As #1
    And then you can access the file normally as you would with Input.

    Sunny

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Location
    I'm right here!
    Posts
    849
    What if the file is not a text file and is more complex
    then a text file?
    Dekel C.

  4. #4
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    you mean run the program on his computer and see it on your???


    PC anywhere
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Location
    I'm right here!
    Posts
    849
    Not a program, a file.
    but can also be an exe.
    But mostly a media files, movies.
    Let me explain my program:
    The user will download my progran in order to watch
    a movie wich is playing on my computer.
    The user will also be able to activate my movie.

    If a Guru is needed in order to tell me how,
    then please do...
    Dekel C.

  6. #6
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    Its sound like you want to create an app that will allow someone to download anything from your computer as well as execute a file on your computer over a newtork or internet.

    Sounds dangerours to me!!!

    but if so, you could do it using the winsock control
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  7. #7
    Guest
    Then depending on your application, where you normally supply the path of the file you just replace it with

    Code:
    \\hostname\drive\file

    Sunny

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Location
    I'm right here!
    Posts
    849
    It's not dangerouse if they can use only specific
    files.
    So how do I use the winsock control to do that?
    Dekel C.

  9. #9
    Guest
    You write your program like you normally would as if the file was on the local hard disk, but to access a network file with your program non of your code has to be changed other than the directory of the file, which needs to be changed to

    Code:
    \\hostname\drive\file
    Sunny

  10. #10
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    I assume you have used winsock?

    you'll have to create a protocol over TCP/IP on your own.

    I'm not sure how well winsock works with binary data. (never done it, sure it can be done)

    winsock1.senddata "?@?@?@?@?here comes the file?@?@?@?@?"
    open filename for input as #1
    winsock1.senddata input(lof(1),1)
    close #1
    winsock1.senddata "?@?@?@?@the file is done?@?@?@?@?"


    - But now that I go back and read your orginal question you wanted not to have to download it. But that is what this will do. You have to do this unless you take control of the remote computer keyboard,mouse and monitor, such as the was PC Anywhere works. Is that what you want to do, If you I can't help!
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Location
    I'm right here!
    Posts
    849
    I dont know what is PC Anywhere.
    When I tried to use what Sunny said,
    it didn't work. I'm using MediaPlayer to do so.
    So what should I do?
    Dekel C.

  12. #12
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    what Sunny is telling you to do is to open a remote file as if it was a local file.

    in network neightbor hook click on the computer you want to conect to thats the (computer name)

    \\computername

    then click on the share
    (if the directory is shared on the remote computer

    then the file name

    the second parameter is not really a drive letter like "C" but it is what ever is shared on that computer

    \\computername\sharename\filename

    \\hiscomputer\temp\text.txt

    Kurt Simons
    [I know I'm a hack but my clients don't!]

  13. #13

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Location
    I'm right here!
    Posts
    849
    Can a computer name be in numbers?
    and can this work through the internet?
    Dekel C.

  14. #14
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    remember that computer translates that name into a number in the background anyways.

    But the windows OS turns off file sharing on your internet connection etc.

    The short answser is no, but who knows there could be a way to override it.

    This is the reason for FTP etc.
    Kurt Simons
    [I know I'm a hack but my clients don't!]

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