The Windows CMD utility has a number of internal commands, such as mklink. How can they be used from the msys shell ?
From CMD's documentation, the /c switch can be used to execute a command and exit; but this doesn't seem to work.
- If I do
cmd /c mklinkthemklinkcommand is not executed and theCMDshell is not exited.
Before pressing Enter:

After:

Process Monitor screenshot:

- Trying to run the command as a background process:
cmd /c mklink &apparently works - themklinkcommand is executed, but theCMDshell is not terminated. Every timeEnteris pressed,CMDwill become the active shell.
Answer
Search your %PATH% for cmd.cmd or cmd.bat. They may interfere with your cmd
Run Process Monitor and run your
cmd /c mklink. Examine ProcMon log for really executed commands.
No comments:
Post a Comment