Welcome Guest.   Make a donation to an author on the site September 02, 2014, 11:43:53 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2013! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Unc to Web link converter  (Read 4570 times)
justice
Supporting Member
**
Posts: 1,888



Solve issues simply.

View Profile WWW Give some DonationCredits to this forum member
« on: February 04, 2009, 08:43:33 AM »

Had an issue here where the mindtouch wiki that's used on an internal project mangles up UNC path style links. So I created an autohotkey script that converts it into a file:// protocol link and copies it to the clipboard. Thought maybe it would be useful for someone on here (or their colleagues).

You can do the same by pasting the link into Firefox and copying the result - but try to tell that to someone that tries to map a network drive using the tools menu in outlook (how to install firefox, get the link copied out the email, into the address bar, coping it out again and into their wik).

[copy or print]
; Unc2Web.ahk
#NoEnv
InputBox, OutputVar, UNC TO WEB LINK, Please put in a link to the UNC Network Path:`n`n For example: `n\\f_server2\share\New Folder\index.html`n\\f_server2\share\New Folder
if NOT ErrorLevel
{
OutputVar := RegExReplace(OutputVar, "\\\\", "file://") 
OutputVar := RegExReplace(OutputVar, "\\", "/") 
clipboard := OutputVar
InputBox, bla, UNC TO WEB LINK, The following link has been copied to your clipboard. Use it in wikis or other webpages - this link only works internally.,,,,,,,,%Outputvar%
}




* Unc2We.zip (194.97 KB - downloaded 190 times.)
« Last Edit: February 04, 2009, 08:53:10 AM by justice » Logged

lanux128
Global Moderator
*****
Posts: 6,088



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: February 04, 2009, 07:25:19 PM »

nice, downloading it.. Thmbsup
Logged

justice
Supporting Member
**
Posts: 1,888



Solve issues simply.

View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: June 26, 2012, 07:17:12 AM »

If you want to play with the latest source, you can now fork from Bitbucket:
https://bitbucket.org/svandragt/unc2web

I'll keep posting executable releases in this topic when they're available.
Logged

Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.028s | Server load: 0.02 ]