Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
when I try to use the command d2r-server.bat kg_demo_movie_mapping.ttl in the terminal, the command not found.
And I tried to modify the .bash_profile as follow :
it's still not working.
Is there anyway to fix this?
The picture of bat file, and the terminal :
Batch files are for Windows use. In a bash shell you'll need a bash script. Bash scripts can be identified by a shebang line at the top of the script, e.g.:
#!/bin/bash
In the specific case of the d2rq package there are scripts included. Look through the files in your downloaded package and you'll find the bash scripts share the same basename without the .bat extension of the windows batch files.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I'm on Windows 10, the cmd does not recognize any commands.
It return always:
"the name of the commande" is not recognized as an internal or external command, an executable program, or a batch file
after Google search, I found that I should modifiy the Path in Environment Variables to add this line bellow, but it does not resolve the problem:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
Someone please can tell me how can I resolve this problem?
Thank you
ls is NOT a standard Windows command! DIR is the Windows equivalent to ls.
To see a list of Windows supported command, enter help. The example output:
>help
For more information on a specific command, type HELP command-name.
ASSOC Displays or modifies file extension associations.
...
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I want to get a list of all the file extensions that a windows machine will recognize as an executable.
I tried the following in command prompt:
echo %PATHEXT%
But all I got from that is:
.COM;.EXE;.BAT;.VBS;.VBE;.JS;.WSF;.WSH;.MSC
Which is not a complete list. It's missing things like:
.SCR;.REG;.VB;.VBSCRIPT
and so on.
If the extension is not in %PATHEXT%, then there is no association. If you just type the.vbs at the command line, you will be informed of same.
If you type cscript the.vbs, then the script will run; assuming cscript.exe is somewhere in the PATH variable.
In short, files such as .SCR;.REG;.VB;.VBSCRIPT are not actually executable. It is the association that is used to know which executable can run them.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
After editing my .bash_profile to export a path, my terminal stopped recognizing even simple commands such as "ls" and "vi".
The error message that I see is:
-bash: networksetup: command not found
I don't know if I caused this error by editing my .bash_profile, and since I haven't been able to open any files via the terminal, I can't delete what I last added.
Does anybody know how to fix this?
Use the command.
/usr/bin/vim .bash_profile
PATH variable defines the list of directories for where the executable for the given command will be searched for. Since the PATH variable is not set the system does not know where executable for the given commands (ls, vi, etc) are located
Update / Solution:
The problem was in the .bash_profile. I downloaded Secrets, which allowed me to see hidden files. With that, I could open my .bash_profile.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm completely new to using terminal, and while trying to use brew to install some stuff, I did something to PATH. Now if I tell it to do something it always returns
-bash: blah: command not found.
Is there any way to reset something to fix this? What should I do?
Your path is usually set in either your .profile or .bashrc file. These are found in the root of your user's home directory.
You should be able to fix them by running these two commands in the terminal. They contain the default executable paths
export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
You can set your path this way:
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
and you can always add other directories if you want. Hope this helps.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
The community reviewed whether to reopen this question last year and left it closed:
Original close reason(s) were not resolved
Improve this question
I feel stupid for asking this, but here goes. In linux/mac, you can run an executable file in the shell, simply by writing its name. Can you do something similar in windows command line?
Example: I am in directory dir. I want to run a file a.exe in dir/subdir without changing directory to subdir, or writing subdir/a.exe. Is this possible?
You can using one of the following:
"subdir/a.exe"
subdir\a.exe
You mean you don't want the double-quotes of "subdir/a.exe"? Anyway, if you change to a backslash, it does work; i.e.
subdir\a.exe
It is possible. All you need to do is ensure that the directory in which a.exe resides is included on the path.