Convert local file spec to URL spec

Discuss and share scripts and script files...
Post Reply
admin
Site Admin
Posts: 66258
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Convert local file spec to URL spec

Post by admin »

I use this script to easily generate valid web references (URLs) to my www.xyplorer.com web project from my local machine.

Code: Select all

// copy current item as xyplorer.com URL
  replace $p, <curitem>, "\", "/";
  replace $p, $p, "D:/www/xyplorer.com/code", "http://www.xyplorer.com";
  copytext $p;
I assigned Ctrl+U to it (via UDC Run Script) so it's just a key combo from D:\www\xyplorer.com\code\download\tipoftheday.zip to http://www.xyplorer.com/download/tipoftheday.zip. :D

marjomu
Posts: 1
Joined: 27 Sep 2015 10:50

Re: Convert local file spec to URL spec

Post by marjomu »

Morning,
I think that's exactly what I look for but I don't know what to do with the 4 lines copied of the script.
I speak french. I desire to see directly the path of the url without going to the properties.
For advance, thanks a lot...
Marjomu

Post Reply