Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Convert path to URL?


03 Jul 2013   #1
pjbw

Windows 7 Professional 32 bit
 
 
Convert path to URL?

I am looking for quickie app into which I can paste a Windows 7 file path and which converts it to a URL.
Very simple: prefixes the path with file:/// and then changes all the \'s to /'s.
(Easy to edit the paths but life's too short).
Are there any suggestions?


My System SpecsSystem Spec
.

03 Jul 2013   #2
UsernameIssues

W7 Pro SP1 64bit
 
 

It sounds like you currently put a path to a file into the OS clipboard (perhaps using shift-right-click from within Windows Explorer) and then paste/modify that info into the address field of a browser - correct?

Does the path that you start with contain a mapped drive letter or is it a UNC connection? Do you need the app that you are looking for to handle both local/mapped drive paths and UNC paths?

Are there quotation marks around the original path?

Most browsers already convert \ to / and they will handle a mapped local, mapped and UNC paths as is.
My System SpecsSystem Spec
04 Jul 2013   #3
pjbw

Windows 7 Professional 32 bit
 
 

Quote   Quote: Originally Posted by UsernameIssues View Post
It sounds like you currently put a path to a file into the OS clipboard (perhaps using shift-right-click from within Windows Explorer) and then paste/modify that info into the address field of a browser - correct?

Does the path that you start with contain a mapped drive letter or is it a UNC connection? Do you need the app that you are looking for to handle both local/mapped drive paths and UNC paths?

Are there quotation marks around the original path?

Most browsers already convert \ to / and they will handle a mapped local, mapped and UNC paths as is.
I use Thunderbird email client and can Save an email as .eml.
Then in PowerDesk file manager I select the file and Edit, Copy Path as Text.
I then paste this text path into the Notes pane of 'Handy Address Book' against the relevant contact.
HAB doesn't know about Windows paths but if in HAB I prefix the path with 'file:///' and change the back-slashes to make it a URL it goes blue and I can click on it to open the .eml file in my default Opera browser.
From there I can paste the relevant text back into HAB under the relevant URL.
This is very readable and useful.

However I was brought up with Unix and my file paths are often very long; no Libraries, no My Documents, etc. and so editing the paths is tedious.
There must a way to automate this. I do like HAB for managing contacts; maybe something completely different is called for...
My System SpecsSystem Spec
.


04 Jul 2013   #4
UsernameIssues

W7 Pro SP1 64bit
 
 

A few lines of scripting via AutoIt should do what you want:

Code:
$var = StringReplace(ClipGet(), "\", "/")
$var = StringReplace($var, "c:", "file://")
ClipPut($var)
You can edit the "c:" part as needed.

You can run that script via an OS shortcut key...
(assign it something like Ctrl-Alt-c for convert)
...or you can add code that lets it run all of the time - converting the info in the OS clipboard when you press some key or key combo.

Personally, I would leave the script as a text file and run it like that. If you would rather compile it, see the info just above and below the last video in this post.
My System SpecsSystem Spec
07 Jul 2013   #5
pjbw

Windows 7 Professional 32 bit
 
 

Apologies for late acknowledgement.
I am working through AutoIt and it does look as if it will do the job.
My System SpecsSystem Spec
Reply

 Convert path to URL?




Thread Tools



Similar help and support threads for2: Convert path to URL?
Thread Forum
Open a new window with "full path" instead of Search Results\"Path" General Discussion
Anyways to convert WIM to ISO Installation & Setup
Convert mo3 to mp3 Sound & Audio
Convert jpg to lbl Music, Pictures & Video
Convert from 32 bit to 64 bit General Discussion
How to Convert x86 W7 ISO to X64? Installation & Setup
How to convert MP3 to WAV? Sound & Audio

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:25 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App