Notepad++ path environment variable - path

I added C:\Program Files (x86)\Notepad++ to my Path environment variable. I've since tried launching the notepad++.exe from PowerShell, but it isn't recognised. I've tried this with quotes in the Path, without, tried restarting PowerShell, tried a full restart of the PC..
Has anyone succesfully launched notepad++ with it in Path?

you could try start notepad++ in powershell or just hit winkey+r, type notepad++ in run command. both will open notepad++

#MaxRussell
I've tried this with quotes in the Path, without, tried restarting PowerShell
There is no need to put quote in path value of notepad++ install directory. it is enough to restart the PowerShell/cmd.exe to run notepad++. After that just type notepad++ file_name.extention

Related

How do I run cmder inside atom on windows 10?

I have install cmder and atom editor (v. 1.19.3). Also install the platformio-ide-package for atom. And I do еverything that has been described in this article - http://thebar.cc/atom-editor-cmder/, but in my atom editor ->settings missing the part with Shell Override: ... , where I can change the path. Is this is a bug on my editor? And can anyone tell me how to fix that and set the Atom editor with the Cmder console.
Got it working with simply putting C:\Windows\System32\cmd.exe into Shell Override and C:\path\to\cmder\vendor\init.bat into Auto Run Command, no quotes, no nothing.
It's not much of answer(I can't comment yet), but it might help.
Shell override is in: Atom Settings(or ctrl + ,) > Packages > platformio-ide-terminal > Settings. Scroll down and you will see.
I didn't make it work yet(actually by googling found this question). If I do I'll edit this comment(Hope I can do it). I'm on Windows 7.
EDIT:
It works(win7). What I did is I removed double quotes (") around the path inside the file atom.bat. Of cause edit path to where is your cmder folder is.
Use platformio-ide-terminal and in the settings of the package:
Shell Override C:\Windows\System32\cmd.exe
Shell Arguments /K C:\path\to\cmder\vendor\init.bat
Since my machine is slow to start the batch script, here's an elegant way to add a loading message so it doesn't seem like the terminal is unresponsive, just add this to AutoRun:
#cls & echo Loading... & C:\your\path\cmder\vendor\init.bat

'rake' is not recognized as an internal or external command, operable program or batch file

Minutes ago, I downloaded the oscurrency code from github, and I'm installing oscurrency on heroku. Everything seemed to be going perfectly until this command:
rake heroku:install
on the command line, in the directory where I downloaded the source code. I get the error:
'rake' is not recognized as an internal or external command, operable program or batch file.
I'm following the installation instructions at heroku here:
https://github.com/oscurrency/oscurrency/wiki/Heroku-Deployment-Guide
The command "rake heroku:install" is in the third paragraph from the bottom.
The code I downloaded came in a top-level folder called oscurrency. I downloaded that onto my laptop in C:\me\oscurrency. I was issuing the command in that directory when I got the error. I tried issuing the command in the folder C:\me\oscurrency\oscurrency -- same error.
Maybe the command has changed for some reason. Anybody have an idea what's going wrong?
Your problem is most likely that the command prompt is looking for a file named rake.exe and not able to find it because your PATH environment variable is not set to include that directory. I suspect that the rails command won't work either. You should add the ruby install directory (probably C:\Program Files\Ruby on Rails\bin\ to your PATH environment variable.
To do this, open your Computer Properties by right-clicking My Computer and selecting Properties, then find the "Advanced System Settings" link. Click the "Environment Variables" button at the bottom, and paste the path to that directory into the PATH variable, separating it with a semicolon.

ant error "The syntax of the command is incorrect." on running ant.bat

I tried various ant versions and also tried running the command directly from ant_home/bin directory, but no luck only below error:
ant error "The syntax of the command is incorrect." on running ant.bat
kindly help on this, I am not finding anything helpful anywhere on the web.
Thanks
Luckily I got the problem root cause and solved it :)
The reason was my java_home was ending with a " character in environment variable, after removing the " from java_home path, ant started working as expected.
to investigate the aforesaid I just opened the ant.bat in notepad and in the first line I changed echo "off" to echo "on", by doing that, when I hit ant.bat in the command prompt it logged the exact line of ant.build file where the aforesaid error was being thrown.
I have JAVA_HOME set with proper path but it was pointing to JDK 1.8. I need to change it to point to JDK 1.6 in order to resolve the issue.
The ANT_HOME and JAVA_HOME environment variables are configured in some user machines with "" surrounding the paths, to overcome the spaces in the folder paths.
Having the folder paths with "" around them could be the reason for the message. Either the quotes are to removed or the multiple paths are to separated by ";"
Ref : https://www.mail-archive.com/dev#ant.apache.org/msg37855.html

Setting Java path on Windows for Ant

Just downloaded the latest version of Ant and installed at:
C:\apache-ant-1.8.4
I added the following to the Env Path variable:
...;C:\apache-ant-1.8.4\bin
When I open a terminal window and type:
ant -version
I get:
Files\Java\jdk1.7.0_07"" was unexpected at this time.
In System variables I have the variable JAVA_HOME set to:
"C:\Program Files\Java\jdk1.7.0_07"
so it appears that "ant -version" is struggling to read the space in JAVA_HOME even though it is in quotes.
I see an alternative post on this topic:
Ant and Eclipse
but it doesn't tackle this specific point.
Has anyone else encountered this problem and know the answer?
My guess is current definition of JAVA_HOME has unwanted double quotes. Show output of set JAVA_HOME on command window. It should not have any double quotes.
Please start command prompt. Set the JAVA_HOME again
set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_07
Hmmm, it should be fine with quotes. Could be something else in your path. If all else fails you could revert to dos 8.3 notation.
dir /x
Which gives
13/01/2013 03:57 PM <DIR> PROGRA~1 Program Files
13/01/2013 03:57 PM <DIR> PROGRA~2 Program Files (x86)
In case anyone else is still encountering this problem, I am on Windows 7 and was experiencing the same. I was using the GUI provided by right-clicking the "computer" icon to attempt to set the JAVA_HOME path to the relevant program files folder (C:\Program Files (x86)\Java\jdk1.7.0_45). This will not work! The GUI doesn't accept spaces in paths. Command line however, does. Use set JAVA_HOME= C:\Program Files... to get it working, filling out the rest of the path with the location of your jdk installation.

"rails" command on windows

So I installed Ruby On Rails using the Windows Installer.
Now the startup guides says I have to start up an Terminal and run the Rails command to make a project. I don't have a terminal, so how do I execute a Rails command and make a project??
The CMD command line in Windows does not recognize "rails"
I don't think it is an PATH problem, because when I'm in the "Bin" directory, there is "rails.bat" and "rails" with no extension. If I run Rails.bat I get "The filename, directory name, or volume label syntax is incorrect."
I get that message with whatever Argument I pass to it.
It seems to be a bug in the rails.bat file because of double-quotes, like:
#"ruby.exe"" "%~dpn0" %*
Remove the double quotes:
http://sepitfalls.blogspot.com/2008/12/updateing-rubygems-broke-gem-command.html
To get a terminal
Start > Run... or Windows key + R
Type "cmd" and hit enter.
To add a folder to the command line's path
On Windows XP (Vista is similar)
Start > Control Panel > System
Click the "Advanced" tab
Click "Environmental Variables"
Under "System Variables" double click on Path and edit accordingly.
You will need to open a new command line in order to get the updated path to take affect. With XP, I've had to reboot to force it to take affect but it shouldn't be necessary.
The Path variable is a semi-colon seperated list of folders in which the Command Line or "terminal" looks for commands.
You'll probably have to find the rails command yourself. I would try looking for a rails.bat or rails.cmd file.
I think they mean the command window. Try running it from a command line.
I dont know where the Windows Ruby on Rails intaller places its files, but the ultimately solution is that you need to make sure that the "rails" command is is your PATH - which you can view/modify by right-clicking My Computer, selecting Properties, going to the Advanced tab and then clicking on "Environment Variables" and then scrolling down until you see "PATH" and adjusting it accordingly. You probably need to find the directory where the "rails" command lives and append to the end of the existing PATH entry, inserting a ";" before you enter the new path to append it to the existing PATH.
So find where "rails" is and add its directory to your PATH.
You probably have to change your PATH in Windows to point to wherever the rails executable has been installed.
The PATH environment variable is used to determine where Windows looks for stuff; when you type, for instance, 'calc' Windows will hunt through its PATH and eventually find and run C:\Windows\calc.exe. In your case, the PATH doesn't include the directory you need, so Windows isn't searching in that directory for rails.exe when you type "rails."
To fix this, right click on "My Computer" -> "Properties" -> "Advanced" -> "Environment Variables" and then modify the PATH one to include the directory your rails.exe is in.
I recommend using cygwin for Rails development on windows - far too much of the community is using *nix. If you install the development tools package you'll automatically have svn, git and other doo-dads that you'll eventually need relating to various rails plugin installation. If you want to deploy using capistrano the installation is identical to all the instructions you find. Plus other tips and tricks people will reference will work exactly the same for you as it does for them, whereas some things are different for native windows and all the accessory tools have to be installed separately.

Resources