|
-
Oct 10th, 2000, 08:50 AM
#1
Thread Starter
Fanatic Member
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]
-
Oct 11th, 2000, 12:01 AM
#2
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
-
Oct 11th, 2000, 09:17 AM
#3
Thread Starter
Fanatic Member
What if the file is not a text file and is more complex
then a text file?
-
Oct 11th, 2000, 10:01 AM
#4
Fanatic Member
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!]
-
Oct 11th, 2000, 03:43 PM
#5
Thread Starter
Fanatic Member
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...
-
Oct 11th, 2000, 10:49 PM
#6
Fanatic Member
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!]
-
Oct 12th, 2000, 12:00 AM
#7
Then depending on your application, where you normally supply the path of the file you just replace it with
Code:
\\hostname\drive\file
Sunny
-
Oct 12th, 2000, 05:41 PM
#8
Thread Starter
Fanatic Member
It's not dangerouse if they can use only specific
files.
So how do I use the winsock control to do that?
-
Oct 13th, 2000, 12:07 AM
#9
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
-
Oct 13th, 2000, 09:20 AM
#10
Fanatic Member
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!]
-
Oct 13th, 2000, 04:46 PM
#11
Thread Starter
Fanatic Member
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?
-
Oct 13th, 2000, 11:19 PM
#12
Fanatic Member
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!]
-
Oct 14th, 2000, 07:39 AM
#13
Thread Starter
Fanatic Member
Can a computer name be in numbers?
and can this work through the internet?
-
Oct 14th, 2000, 08:36 AM
#14
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|