The How-To Geek Forums Have Migrated to Discourse


How-To Geek Forums / Windows Vista

Not able 2 open notepad through cmd prompt

(7 posts)
  • Started 8 years ago by vinay3817
  • Latest reply from KIngmidas
  • Topic Viewed 2420 times

vinay3817
Posts: 0

hi everyone i m using vista. i m not able 2 open notepad through command prompt. initially i was able 2 open it but after setting path 4 java program. i m not able 2 open it. plz tell me how it works and how to set system variable path 4 java.

Posted 8 years ago
Top
 
germ-x
Posts: 0

Notepad is in C:\wondows\notepad.exe. Open windows folder and see ig you can dbl click on notepad to open it.

Posted 8 years ago
Top
 
ispalten
Posts: 0

What is the PATH now?

Open a COMMAND PROMPT and enter SET, then COPY the result into the clipboard (RMB, MARK, and then LMB in the mark) and paste it here...

Mine looks like this :

-----------------
C:\Users\Irv>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Irv\AppData\Roaming
CLASSPATH=.;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=IRV-XPS435
ComSpec=C:\Windows\system32\cmd.exe
DFSTRACINGON=FALSE
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Irv
LOCALAPPDATA=C:\Users\Irv\AppData\Local
LOGONSERVER=\\IRV-XPS435
MOZ_PLUGIN_PATH=K:\utilities\PDF Reader\Bin\
NUMBER_OF_PROCESSORS=8
OS=Windows_NT
Path=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\syst
em32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\ATI Technologies
\ATI.ACE\Core-Static;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\
;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Windows\Sys
tem32\Windows System Resource Manager\bin;C:\Windows\System32\WindowsPowerShell\
v1.0\;C:\Program Files (x86)\Pinnacle\Shared Files\;C:\Program Files (x86)\Pinna
cle\Shared Files\Filter\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program F
iles\Common Files\Microsoft Shared\Windows Live
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 26 Stepping 4, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1a04
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
QTJAVA=C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
RoxioCentral=C:\Program Files (x86)\Common Files\Roxio Shared\10.0\Roxio Central
36\
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\Irv\AppData\Local\Temp
TMP=C:\Users\Irv\AppData\Local\Temp
TRACE_FORMAT_SEARCH_PATH=\\NTREL202.ntdev.corp.microsoft.com\34FB5F65-FFEB-4B61-
BF0E-A6A76C450FAA\TraceFormat
USERDOMAIN=IRV-XPS435
USERNAME=Irv
USERPROFILE=C:\Users\Irv
VBOX_INSTALL_PATH=L:\Sun\VirtualBox\
windir=C:\Windows
_settings_result=0
---------------------------------

More than likely you've changed to path to not point to C:\WINDOWS at all... you can use SET PATH to just display the PATH if you want as well.

If your PATH is wrong that could explain it.

Irv S.

Posted 8 years ago
Top
 
vinay3817
Posts: 0

@ispalten path is C:\Program Files\Java\jdk1.6\bin

Posted 8 years ago
Top
 
vinay3817
Posts: 0

@ germ-x it is working by another method. i can open notepad frm there. but i want 2 open it from command prompt.

Posted 8 years ago
Top
 
ispalten
Posts: 0

Well, it looks like something wiped out your path. It should look something like this :

C:\>path
PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\syst
em32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\ATI Technologies
\ATI.ACE\Core-Static;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\
;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Windows\Sys
tem32\Windows System Resource Manager\bin;C:\Windows\System32\WindowsPowerShell\
v1.0\;C:\Program Files (x86)\Pinnacle\Shared Files\;C:\Program Files (x86)\Pinna
cle\Shared Files\Filter\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program F
iles\Common Files\Microsoft Shared\Windows Live

I don't have a path for Java either... and mine works...

Try setting the path to the above, that should make it work.

Irv S.

Posted 8 years ago
Top
 
KIngmidas
Posts: 0

If access on demand is all you require locate NOTEPAD in search.... drag it into start on taskbar

Posted 8 years ago
Top
 



Topic Closed

This topic has been closed to new replies.

The Best Tech Newsletter Anywhere

Join 250,000 subscribers and get a daily digest of news, geek trivia, and our feature articles.