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
Thread Forum
Open a new window with "full path" instead of Search Results\"Path"
How can I make it such that in Search Results, when I open a folder in a new window (by right-clicking a file), I will be directed to a window with the "full path" displayed in the address bar, instead of Search Results\"Path" or Search Results>"Path"? Edit: "Right-click -> open file location"...
General Discussion
help to convert
can anyone give me a converter that convert mkv to other video format without losing subtitle? thanks! any help appreciated
Music, Pictures & Video
Convert jpg to lbl
Hi Does anyone know a program i can get to convert jpg file to LBL. Cheers
Music, Pictures & Video
Need help,convert PIO to DMA
hi all. well i m havign a problem since i bought this dell studio 1737 laptop and i tried to burn a iso image onto dvd to make a bootable disk,as it is in PIO mode,and says that it needs some changes to write in DAO mode. i contacted dell,they gave a utility which converts PIO to DAO or DMA but...
Hardware & Devices
convert mp3 to .aa
I do not know if you folks can help...this not a win 7 problem...you folks have been a big help, so I am pushing my luck...I use win 7 as my os, but I have need of program that will convert mp3 files to .aa format..I have a lot of mp3 files and I want to use them in mp3 player that handles .aa...
Software
How to convert MP3 to WAV?
For my own music to be used in 'GTA: San Andreas' on the custom radio thing, they need to be WAV files. Is there anyway I can convert them to WAV for free and effectively? I don't wanna play them in WMP in the background as with GTA you can get commentary after songs and little adverts which are...
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 20:45.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App