When I click «Open in Command Prompt» in Visual Studio Code selected folder (C:\playground\ng2\app) should open in command line. But in command prompt display path C:\
printscreen
Have you configured the AutoRun setting for cmd.exe to cd \?
Related
When I want to delete a node_modules folder it takes ages when I delete it using Windows Explorer. How do I delete faster?
I use to have the same issue, taking hours to achieve the deletion until I found this workaround:
Select the node_modules folder. Do this with the file explorer.
Open Powershell as admin: press Alt+F, then S, then A.
Wait and accept to open Powershell as admin
Paste this command and press Enter: del /f/q/s *.* > nul.
WARNING
Please be sure to be in the folder node_modules. I mean, that the terminal path ends with ...\node_modules.
In the above command, we use the /f switch to force the deletion of read-only files. The /q switch enables quiet mode. The /s switch executes the command for all files in any folder inside the folder you’re trying to remove. Using *.* tells the del command to delete every file and > nul disables the console output improving performance and speed.
Wait for the process to take action.
Now go up one level in the directory with cd...
Finally use this command to delete the node_modules folder rmdir /q/s node_modules
In the above command, we use the /q switch to enable quiet mode, the /s switch to run the command on all the folders, and node_modules is the variable you need to specify to delete the folder you want.
If you get an error with Powershell try other terminals as administrator like Windows Terminal, Command Prompt (cmd) or third party terminals like ConEmu. I made this steps with Cmder and all the deletion was done in just 5 minutes. Off course this duration is variable according to the size of the folder.
References:
pureinfotech.com
ConEmu
Cmder
From you project folder use following command to delete it:
rd .\node_modules\ /s /q
I can't open the sublime application or any file via within sublime from the command line. I am currently using Git Bash(SDK-64). I followed this tutorial. I am stumped I am still getting the bash error. bash: subl.exe: command not found
Are you sure, you have Program File folder in C directory? As far as I know C directory has Program Files folder. Add s in Program File.
Write C:\Program Files\Sublime Text 3 instead of C:\\Program File\Sublime Text 3. It should work.
Is necessary to only add your Sublime directory path to the Path list, as you have done in your first pic and use only one "/".
Second step from last picture is not necessary.
Sublime will open with "subl.exe" and can take as argument the name of a file. "subl.exe dummy.txt".
I checked in Git Bash, Powershell and Developer Command Prompt for VS 2017 on win 10.
Git-bash.exe is installed at this location:
C:\Program Files\Git
Git-bash.exe starts up with these prompts:
bash: /c/Users/GodCoder/git-prompt.sh: No such file or directory
GodCoder / $
(GodCoder is just the username)
This file named, 'git-promt.sh' is definitely present at that location, still that promt!
Now, after I tried to print the current working directory which is the same directory where Git-bash is installed i.e. C:\Program Files\Git , it showed this:
GodCoder / $ pwd
/
Now, how to change this, default startup directory to my home directory location which is C:\Users\GodCoder i.e. I want Git-hub.exe to start up like this
GodCoder ~ $
Instead of starting up in this way
GodCoder / $
How to achieve this GodCoder ~ $?
Start your git bash with a /dir like this: git-bash.exe /dir "C:\Users\GodCoder"
If you are on Windows, do this
Right click on the Windows shortcut that you use to launch git bash, and click Properties. Change the value of "Start In" to your desired workspace path i.e.
Replace the start in values with "C:\Users\GodCoder"
For more information go to this link: https://classroom.udacity.com/courses/ud775/lessons/2980038599/concepts/33417185870923
It may help you in setting up your enviroment further and also, make sure you restart the application or even the pc and try running in admin or different user modes too!
In Terminal, on mac, when i use the cd Desktop to view files through the terminal i get an error "no such file or directory"
When i checked the current working directory, it shows I'm in /home/
I do not understand why suddenly it doesn't work.
I tried using a .profile file to have some alias and path change. Could this change in .profile file cause this error?
Try use cd (with no parameters) for jump to your home directory which should be /Users/username. Then use cd Desktop. Alternatively you can do "cd ~/Desktop"
First of all, make a desktop folder in the home folder, then open the command prompt
Also, try the " cd desktop " command you will not get an error. Always remember the case-sensitive words before running Command.
My requirement is to delete a shortcut to a folder. The folder named test is in $windir. The shortcut to that folder is on the desktop. My nsis script should delete that shortcut. What is the script line to do so?
The name of the shortcuts target does not matter, a shortcut is just a file with a hidden .lnk extension.
Delete "$desktop\nameofyourshortcut.lnk"