topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Wednesday December 11, 2024, 10:57 pm
  • Proudly celebrating 15+ 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: OU and OK (for 4wd)  (Read 4452 times)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
OU and OK (for 4wd)
« on: March 02, 2015, 08:31 AM »
I am here again.
OpenUrls is a magical script for me . OU .

I have a friend that consider the most simple ways to organize. He organizes his knowledge in folders.
Folder is a basic concept in windows operating system.
When we use the group url concept from Firefox we are depending on a program : Firefox and its addons. We change the browser and probably we have to adapt to a new situation.

That is one of the reasons i am in love with OpenUrls from 4wd.

A couple of years ago I introduce in my life the concept of initial help or initial document. Or initial Knowledge .

We all suffer the massive information from web and the necessary selection.

What I am asking now is similar to OpenUrls, but a little more powerful. Will be able to launch the urls within a folder and the pdf too, even if are shortcuts to somewhere else.

And a good name is Open Knowledge = OK


Perhaps in the future i would like to open the docs and the txt too. So I would like the possibility to configure the script.

Is possible ?
 :-*


4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,644
    • View Profile
    • Donate to Member
Re: OU and OK (for 4wd)
« Reply #1 on: March 02, 2015, 08:02 PM »
In the script, duplicate this line as many times as needed for each extension and then change the extension it looks for:

Code: Text [Select]
  1. for /f "usebackq tokens=*" %%a in (`dir /b /a-d *.url`) do (start "" "%%~a" && %windir%\system32\ping -n 1 -w 3000 1.1.1.1 >NUL)

Shortcuts:
Code: Text [Select]
  1. for /f "usebackq tokens=*" %%a in (`dir /b /a-d *.lnk`) do (start "" "%%~a" && %windir%\system32\ping -n 1 -w 3000 1.1.1.1 >NUL)

Microsoft doc(x):
Code: Text [Select]
  1. for /f "usebackq tokens=*" %%a in (`dir /b /a-d *.doc*`) do (start "" "%%~a" && %windir%\system32\ping -n 1 -w 3000 1.1.1.1 >NUL)

Adobe PDF:
Code: Text [Select]
  1. for /f "usebackq tokens=*" %%a in (`dir /b /a-d *.pdf`) do (start "" "%%~a" && %windir%\system32\ping -n 1 -w 3000 1.1.1.1 >NUL)

BTW, the 3000 changes the speed at which items are loaded in milliseconds, eg. 2000 = 2 seconds - don't set it less than 1000 otherwise who knows what'll happen.

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: OU and OK (for 4wd)
« Reply #2 on: March 03, 2015, 10:14 AM »
Sounds wonderful . I will try and comments the results.
But how can I have other entry in the contextual menu for this special purposes ?

P.D. I suppose is modifying the name of the script in the same destination folder in c:\scripts
and adding the recommended and preceptive lines.

 :-*

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: OU and OK (for 4wd)
« Reply #3 on: March 05, 2015, 08:03 PM »
I have add also the txt extension. I am ready to try now.

 :-*

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: OU and OK (for 4wd)
« Reply #4 on: March 05, 2015, 08:16 PM »
It's working perfect.
 :)