Adding BasList to the Path

By default, opening BasList from the Start menu or the desktop icon sets the current directory (folder) to the BasList application folder. In this way, you only have to type BasList to use it, not a whole path like "C:\Program Files (x86)\BasList.exe".

However, if we add that directory to the Windows PATH, we can be in any directory and use the short form. Windows will find the executable.

Steps

This is a one-off procedure. Do it once and forget it!

  1. Locate the BasList folder
    If you already know the location, you can skip this step.
    1. Open BasList
    2. In the Command Prompt window, use the mouse to select the directory name before the ‘>’ prompt

      Alternatively, hold the Shift key and use the arrow keys to select the directory. It doesn’t matter if you select the ‘>’ – it can be removed later.
    3. Let go of Shift and tap Enter. This invisibly copies the selection to the clipboard.
  2. Press the Windows key on your keyboard (just left of the spacebar)
  3. Without further ado, just start typing ‘Edit the system environment variables’
  4. As soon as it appears, click it

    The System Properties window is displayed
  5. Select the Advanced tab
  6. Choose Environment Variables…
  7. In the ‘User variables for …’ box at the top, find and select Path
    Note: If you want this setting to apply to all users of the PC, not just you, use the bottom box (System variables) instead.
  8. Choose Edit…
  9. In the Edit environment variable window choose New
  10. Either click ‘Browse…’ and navigate to the BasList folder, or paste the location (Ctrl-V) if you copied it in step 1. If there’s a ‘>’ on the end, delete it. Then press Enter to confirm the path
  11. Choose OK or press Enter again
  12. Choose OK in the Environment Variables window
  13. Choose OK in the System Properties window
  14. Close any BasList or Command Prompt windows that are open – the changes you have made only apply to new windows.

Using BasList…

  1. Open the folder containing the program you want to list
  2. Click a blank part of the window – not on any file – to deselect any files that may have been selected. (If the window is so full that there isn’t a blank portion after the files, scroll all the way over to the right and click to the right of the file icons or listing, next to the vertical scrollbar. You can see from the faint highlight you get when you hover the mouse pointer over a file whether you are ‘on’ a file or in the narrow right margin.)
  3. Hold a Shift key and right-click, still on the blank part
  4. From the pop-up menu point to ‘Open Terminal’ if Windows 11, or ‘Open PowerShell window here’. (You could also use ‘Open command window here’, if you see it)

    PowerShell is an alternative to the Command Prompt. Either may be used. Windows Terminal replaces the command prompt in Windows 11.
  5. You are now able to issue BasList commands, e.g. Baslist $.MenuEdr

Comment or Ask a Question