Jump to content
Muxe Inc Forums
Sign in to follow this  
dandv

How can I launch NDN in a specific folder?

Recommended Posts

dandv    0

Right now, I have a very handy command shell extension for folders. I go in Explorer to a folder, right click, and launch an instance of cmd.exe in that folder. Here's the .reg file that enables this:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt]
@="Launch command prompt in this folder"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt\command]
@="Cmd.exe /k pushd %L"

 

Now how can I do the same with NDN? I.e. launch NDN in a given folder?

 

I know that it could be done along the lines of:

1. Disable returning to saved directories at NDN startup

2. Call a batch file to CD to the desired directory, then run NDN

 

But what if NDN detected that the file passed in the command line was an existing directory, instead of a valid filename, and would just change to that directory, instead of attempting to edit, for example, "C:\WINNT" when I say "NDN /quiet C:\WINNT\"?

Share this post


Link to post
Share on other sites
dandv    0
Hi dan!

 

although i will never use it it sounds like a nice idea

 

Stefan / AH

 

I will never use it myself, either, but it will help Explorer fans who, from time to time, realize that they need NDN. This happens at my workplace, for example, where I constantly help a colleague who wouldn't use NDN to save his life, although he agrees NDN is a very powerful tool. So I come to his desk and I ask him to launch NDN, navigate to the folder in question and operate on some files, using the command line etc. Now if NDN would pop-up in that folder, the guy would be less reluctant to use it.

 

The same happened with "Launch command prompt here". Until I imported that .reg file on his system, he went to Start->Run, cmd, typed the drive letter, then "CD ", then pasted the path he copied from Explorer.

 

Now, he ends up in the desired folder directly.

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×