Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 09, 2016, 07:15:00 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: How to create a folder automatically on my PC using a weblink on the browser  (Read 522 times)

netra0

  • Participant
  • Joined in 2016
  • *
  • default avatar
  • Posts: 1
    • View Profile
    • Donate to Member
Hello,
I have a url link on the browser page that is clickable (For example.,  Folder 2345 ). When I click this link, it should create a folder automatically on my computer, and should not prompt me with a file dialog box.
Does anybody know how to best achieve this?

Regards

Netra

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,290
    • View Profile
    • Miles Ahead Software
    • Donate to Member
You could try an AutoHotkey script.

In this example you would select the folder name in the browser, then hit the hotkey (control shift d) to copy it to clipboard and then make a folder with the name.  If there is no drive part in the folder name (does not contain ":") then it will be appended to C:\.

To test it uncomment the MsgBox line and comment out the FileCreateDir line

Clipboard text, if any, that was in the clipboard when the hotkey was pressed, is preserved.

Code: Autohotkey [Select]
  1. ClipSave := ""
  2. Root := "C:\"
  3. return
  4.  
  5. ^+d::
  6.         ClipSave := Clipboard
  7.         Clipboard := ""
  8.         Send ^c
  9.         ClipWait 2
  10.         FName=%Clipboard%
  11.         If FName  not contains  :
  12.                 FName := Root FName
  13.         Clipboard := ClipSave
  14.         ;MsgBox %FName%
  15.          FileCreateDir, %FName%
  16. return