M
M
mishael2011-02-24 13:24:33
Windows
mishael, 2011-02-24 13:24:33

Is it possible to force Windows to see the URL as a local file?

Is it possible to force Windows to see the URL as a local file? Those. a text file lies on the internet and is available only via http, can it be made so that it is seen by the system as lying on a disk?

What for? There is a program that climbs onto the screw, takes a text file from there and then does what I need from it. But here is a problem - the file is not on the screw, but on the Internet. So I think how to deceive the program. "Ftp as disk" - do not offer.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
P
pietrovich, 2011-02-24
@pietrovich

If webdav is installed on the server, then you can connect the http resource (folder) as a disk in Windows using standard tools.

P
PuzzleW, 2011-02-24
@PuzzleW

into the new OS, when inserted into the URL opening window, the system downloads the file to a temporary folder, and then gives the address to the program, for example, to the same notepad.
you can do the same, for example by making a my.cmd file with the following content:
wget htttp://mysite.com/mydir/myfile.dat
myprogram.exe myfile.dat
That's it. Well, if your program takes the file along the constant path specified in the settings, then you can transfer it to the right place after downloading wget'om.

B
burgua, 2011-02-24
@burgua

Write a bat file that downloads the file and then launches the program?

T
try4tune, 2011-02-24
@try4tune

You can't edit the file over HTTP.

T
TimTowdy, 2011-02-24
@TimTowdy

Try looking towards Dokan or WinFUSE .

A
Alexey, 2011-02-24
@alexxxst

Notepad (as well as any other editor) perfectly accepts a URL instead of a file name and opens the file as text.

B
BasilioCat, 2011-02-24
@BasilioCat

If your program accesses an external server by its domain name and not by its IP address, then

  1. You raise a web server locally - Apache, Nginx, or in general, there is something simple for such cases (I would write in bash;)
  2. Write in it the correspondence of the requested URL (http://www.copyrightchecker.com/a/long/path/to/the/script.asp) and your local file. In Apache via mod_rewrite, in nginx via built-in tools. You can simply create the desired path inside the document_root and put the file in it, if your program doesn’t give a damn about the content-type of the response, this will work

  3. You write the line 127.0.0.1 www.copyrightchecker.com in /etc/hosts... uh, that is C:\Windows\System32\drivers\etc\hosts
If the program accesses the server via IP, then add an additional address to the network interface (alias) in the ifconfig network settings. It is correct to hang it on loopback, but I don’t know how to do it in Windows. You can hang it on an unused interface - it might work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question