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


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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