Menu

Installed okay; why can't I use the commands

Help
Des
2011-07-08
2012-07-26
  • Des

    Des - 2011-07-08

    Running on a PC. Download gnuwin32. in the C:/gnuwin32/bin I see the command I
    want to use. It is cat.exe

    I added the following environment var to System Properties -variable name PATH

    ;C:\Program Files\GnuWin32\bin

    When I cd to my desktop and try and run the comand cat mytest.html >
    mynew.html

    I get the following error: 'cat' is no recofnized as an internal or external
    command, operable program or batch file.

    How do I make this command and the others (e.g. ls) available from any
    directory.?

     
  • Keith Marshall

    Keith Marshall - 2011-07-08

    If you've installed in c:\gnuwin32\bin, why add "C:\Program
    Files\GnuWin32\bin" to %PATH%? You should append the directory where you
    installed: PATH=%PATH%;C:\GnuWin32\bin in your case.

     
  • Allan

    Allan - 2011-07-09

    If you don't like to edit the PATH variable manually there is a small
    `Pathtool.exe' utility program that comes along with the (non-Gnu) ImageMagick
    package. How did you install the Gnuwin package, using the Windows installer
    or by unpacking a .zip file? The Windows installer lets you specify where you
    want to install the package.

     
  • Jay Satiro

    Jay Satiro - 2011-07-09

    Also only command windows opened after the system PATH environment variable
    has been changed will search the new system PATH. It is not always a good idea
    to modify your system PATH. If you installed gnuwin32 packages using the
    GetGnuWin32 downloader you might consider instead using the provided shortcut
    that will open a command window with your gnuwin32\bin directory first in the
    PATH. This allows you a dedicated command window that will run gnu sort
    instead of microsoft's, for example. You can find the gnuwin32 shortcut in
    your start menu or in C:\gnuwin32\Start Menu.

     
MongoDB Logo MongoDB