run named .exe in subdirectory in windows cmd [closed] - cmd

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.

Related

Installing SublimeText 4 [closed]

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 1 year ago.
Improve this question
this is such a beginners question but nevertheless wanted some of your input.
I tried installing SublimeText4 and noticed that there is no .dmg file associated with it, all i get .zip - is this normal? Usually with SBT3 and Pycharm I was used to at least some 'install' procedures.
Kind of new to Mac OS, so thanks for the help.
The DMG approach is common, but in this case, the ZIP file has the application. Often the browser will automatically unzip it for you, but if not, just double click on the ZIP file and the application will be extracted for you. Then you can just drag the app extracted from the ZIP file to your “Applications” folder and you are done.

MacOS -bash:Command not found [closed]

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.

Change %ComSpec% from cmd.exe to bash.exe [closed]

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
Is it safe to change %ComSpec% from cmd.exe to bash.exe(installed with git-for-windows)?
Are there any pitfalls while changing this enviroment variable?
I would imagine that a lot of existing apps and scripts assume that %ComSpec% points to an interpreter that is compatible with cmd.exe/command.com. And by compatible I mean the command line arguments it supports, the internal commands it supports and the way it parses and executes batch files.
Make your own variable if you need one for your own scripts or just make sure the path to bash.exe is in %Path%. Expecting other applications to cope with Bash is not going to work out well in the long run...

How can I get a list of all windows recognized executable extensions in cmd? [closed]

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.

how to copy all extensions bash script [closed]

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 8 years ago.
Improve this question
So this is probably really easy but I'm new to bash scripts.
I wanted to copy all html files from the directory "/site" to the directory "/checkout/target/site"
I wrote single line of copy code for every one of them but the names keep changing, so I want to write something that copies anything that ends with .html basically
oh and the files might exist in the destination, so overwriting would be a lot better.
Thank you
If it is just in the directory /site (not sub-dirs), this makes it:
cp /site/*html /checkout/target/site/

Resources