ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

create shortlinks to urls in a folder from a txt file with the url list

<< < (7/12) > >>

Contro:
Given that you have a textfile with one URL per line then this autohotkey script should do the trick. Adjust the paths to what folders you'll use.

--- ---Loop, Read, C:\folder\textfilewithoneURLperline.txt
{
name := StrReplace(A_LoopReadLine,"http://","")
name := StrReplace(name,"https://","")
name := SubStr( RegExReplace(name, "[/<>\?\\:*\|]"," ") , 1, 70)
IniWrite, A_LoopReadLine, C:\urlfolder\%name%.url, InternetShortcut, URL
}

If you use Firefox then maybe FFBookmarkUnpack may be of use to do a one time unpack of all your firefox bookmarks into subfolders with .url files, http://nod5.dcmembers.com/ffbookmarkunpacker.html

-Nod5 (August 25, 2015, 03:56 PM)
--- End quote ---

The ahk script works very well too.
Best Regards



-Contro (August 25, 2015, 04:54 PM)
--- End quote ---

Sorry i edited this post.

As i said the script works wonderfully
Best Regards
 :-*

Contro:
Do you really need 3 threads in this forumsection to ask 3 times the same question? :(

Oh, and the other 2 already have been answered properly, too...
-Ath (August 22, 2015, 03:17 AM)
--- End quote ---

Ath i can't access your web :

Lost connection to MySQL server at 'reading initial communication packet', system error: 111

Best Regards

Contro:
The OP says: "...create shortlinks to urls in a folder ...in the desktop of our election ... from a txt file with the url list.
I have to ask:

* Why?
* What will you do with/How will you access/use those shortlinks in that folder?
* What's wrong with using Bookmarks?
Also, yes, your making 3 or so overlapping posts on the same subject is somewhat confusing.
-IainB (August 23, 2015, 11:21 PM)
--- End quote ---

I am revising my bookmarks because i have a lot of problemas syncronizing in the past.
Folders with urls repeated even ten or more times.
Folders repeated everywhere and so on

I know where are the security copies.
 :-*

Contro:
I am with Y:\FIREFOX PERFILES\PEPE\sessionstore-backups\recovery.js

is in a data disk
 :-*

Contro:
Now the difficult part.

I have to modify the line

C:\> powershell.exe -noprofile -executionpolicy bypass -File ".\JSON2Shortcut.ps1"


I opened a console and try
The command seems recognigzed. So good for me.


The prior command is the script is in my desktop would be :

C:\> powershell.exe -noprofile -executionpolicy bypass -File ".\JSON2Shortcut.ps1"

C:\> powershell.exe -noprofile -executionpolicy bypass -File "C:\Users\JOSE\Desktop\JSON2Shortcut.ps1"

I will revise now the links
perhaps is better first to try to put the JSON2Shortcut.ps1 in the same directory than powershell.exe....

 :-[


Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version