Jump to content

Recommended Posts

Posted

Currently, I use a better command-here script that works with UNC paths, sets the window title and calls env.cmd that might exist in the upper directories. Oh and the best thing is that you can press the space bar to open it! (because of the ampersand before the space :)

The programs and cmd.exe folder and env.cmd thing might need some editing to incorporate it in nLite.

cmd_here.reg:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\cmdhere]@="Cmd& Here"

[HKEY_CLASSES_ROOT\Folder\shell\cmdhere\command]

@="C:\\WINDOWS\\system32\\cmd.exe /k c:\\programs\\cmd_here.cmd \"%0\" \"%1\""

cmd_here.cmd:

@echo off

title %1

pushd

:loop

if exist env.cmd call env.cmd

cd ..

if not "%CD:~0,-3%"=="" goto loop

popd

pushd %2

cls


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...