Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
wnexd | 2022-05-25 | ||
READMEnd.md | 2023-10-27 | 3.0 kB | |
nexd.7z | 2022-05-24 | 76.4 kB | |
Totals: 3 Items | 79.4 kB | 1 |
Wnexd
-- Windows "nexd" Directory Utility for Command Prompt users
Wnexd Description
Tiny adjunct to the Windows-intrinsic pushd/popd utilities for users of the Command Prompt terminal window that simulates a linux-style "pushd +1", and "dirs".
Features
- Allows round-robin traversal of directories in the "pushd" stack
- Runs on Windows 10
- Lightweight & simple
- Adds 3 new commands that work with the Windows-intrinsic pushd, popd:
- nexd moves to the Next directory in queue [like 'pushd +1']
- pred moves to the Previous directory in queue [like 'pushd -1']
- dirs displays contents of the directory queue [like 'dirs']
Setup wnexd using doskey command:
Download the 7Z archive into your Windows %HOMEPATH% directory.
Unzip the archive.
- 7z [www.7-zip.org] works well for this. The proper command to extract the archive and maintain the directory structure is "7z x filename".
After the archive is unzipped...
Ensure the .\wnexd\ directory is under your home directory. Then "cd wnexd". Finally, execute "ndprep.bat" to make the new commands available. It uses "doskey" to add three commands: nexd, pred, dirs:
- doskey nexd=%HOMEPATH%\wnexd\nexd.bat
- doskey pred=%HOMEPATH%\wnexd\pred.bat
- doskey dirs=%HOMEPATH%\wnexd\dirs.bat $1
Usage
- dirs : displays stack
- dirs -c : clears the stack
- nexd : moves to the next directory in the stack [without popping it]; similar in function to linux "pushd +1";
- pred : moves to the previous directory in the stack [without popping it]; similar in function to linux "pushd -1";
What is special about this utility?
- Allows using a single Command Prompt window when working with several related directories.
- A simple way to enable additional pushd functionality. And, except for the quirky syntax of BAT scripts, the logic is reasonably transparent.
- It cooperates with the intrinsic pushd/popd Windows commands with no change to their functionality.
Open source developers are welcome to help improve or extend this utility. Developer or not, send comments, suggestions or questions to: fastrgv@gmail.com
License:
This utility is covered by the GNU GPL v3:
Copyright (C) 2023 fastrgv@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You may read the full text of the GNU General Public License at http://www.gnu.org/licenses/.