Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Command Prompt


  • Please log in to reply

#1
acfernan21

acfernan21

    New Member

  • Member
  • Pip
  • 5 posts
I have recently been problems trying to run commands thru cmd, and I think I know the reason. A few weeks back, I replaced my PATH default script with a Java script, and now whenever I enter a command it gives me this message. 'ping' is not recognized as an internal or external command,
operable program or batch file. Ping was the command I had entered. Please help
  • 0

Advertisements


#2
SleepyDude

SleepyDude

    Trusted Helper

  • Malware Removal
  • 4,401 posts
Hi,
 
Before trying to fix that I need to see a log.
  • download CheckPath.cmd script and save it to the Desktop
  • right click CheckPath.cmd, then on the context menu click Run As Administrator
  • when the script ends Notepad will open showing a log CheckPath.txt also saved on the Desktop
  • Copy & Paste the full log to your topic

  • 0

#3
acfernan21

acfernan21

    New Member

  • Topic Starter
  • Member
  • Pip
  • 5 posts
/// CheckPath v0.1.1 by SleepyDude - 22-11-2014 \\\ 
 
CheckPath run by Acfernan21 on: Thu 03/30/2017 @ 16:08:03 
 
:: ---------------- Current Environment ------------------------ 
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Acfernan21\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=SWAGMASTER
ComSpec=C:\Windows\system32\cmd.exe
configsetroot=C:\Windows\ConfigSetRoot
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Acfernan21
KEY=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
LOCALAPPDATA=C:\Users\Acfernan21\AppData\Local
log="C:\Users\Acfernan21\Desktop\CheckPath.txt"
LOGONSERVER=\\SWAGMASTER
NUMBER_OF_PROCESSORS=2
OneDrive=C:\Users\Acfernan21\OneDrive
OS=Windows_NT
Path=C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jdk1.6.0_27\bin;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3a09
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
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\ACFERN~1\AppData\Local\Temp
TMP=C:\Users\ACFERN~1\AppData\Local\Temp
USERDOMAIN=Swagmaster
USERDOMAIN_ROAMINGPROFILE=Swagmaster
USERNAME=Acfernan21
USERPROFILE=C:\Users\Acfernan21
windir=C:\Windows
:: ------------------------------------------------------------- 
 
:: Reading Global PATH from Registry... 
 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    Path    REG_SZ    C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jdk1.6.0_27\bin;
 
 
:: Reading User PATH from Registry... 
 
 
ERROR: The system was unable to find the specified registry key or value.
 
Done. 

  • 0

#4
SleepyDude

SleepyDude

    Trusted Helper

  • Malware Removal
  • 4,401 posts
Hi,
 
!!! WARNING !!! The following fix is only relevant for this system and no other, running the script on another computer may cause problems...
  • download Fix-acfernan21.cmd script and save it to the Desktop
  • right click Fix-acfernan21.cmd, then on the context menu click Run As Administrator
  • when the script ends Notepad will open showing a log CheckPath.txt also saved on the Desktop
  • Copy & Paste the full log to your topic

  • 0

#5
acfernan21

acfernan21

    New Member

  • Topic Starter
  • Member
  • Pip
  • 5 posts

:: Fixing PATH...
The operation completed successfully.

New PATH: C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jdk1.6.0_27\bin;


  • 0

#6
SleepyDude

SleepyDude

    Trusted Helper

  • Malware Removal
  • 4,401 posts

Hi,

 

Is the problem fixed?


  • 0

#7
acfernan21

acfernan21

    New Member

  • Topic Starter
  • Member
  • Pip
  • 5 posts
Unfortuantely no, it still doesn't recognize any basic commands
  • 0

#8
SleepyDude

SleepyDude

    Trusted Helper

  • Malware Removal
  • 4,401 posts

Unfortuantely no, it still doesn't recognize any basic commands

 

Please run CheckPath again an post a fresh log.


  • 0

#9
acfernan21

acfernan21

    New Member

  • Topic Starter
  • Member
  • Pip
  • 5 posts
/// CheckPath v0.1.1 by SleepyDude - 22-11-2014 \\\ 
 
CheckPath run by Acfernan21 on: Sat 04/01/2017 @ 13:10:42 
 
:: ---------------- Current Environment ------------------------ 
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Acfernan21\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=SWAGMASTER
ComSpec=C:\Windows\system32\cmd.exe
configsetroot=C:\Windows\ConfigSetRoot
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Acfernan21
KEY=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
LOCALAPPDATA=C:\Users\Acfernan21\AppData\Local
log="C:\Users\Acfernan21\Desktop\CheckPath.txt"
LOGONSERVER=\\SWAGMASTER
NUMBER_OF_PROCESSORS=2
OneDrive=C:\Users\Acfernan21\OneDrive
OS=Windows_NT
Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jdk1.6.0_27\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3a09
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
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\ACFERN~1\AppData\Local\Temp
TMP=C:\Users\ACFERN~1\AppData\Local\Temp
USERDOMAIN=Swagmaster
USERDOMAIN_ROAMINGPROFILE=Swagmaster
USERNAME=Acfernan21
USERPROFILE=C:\Users\Acfernan21
windir=C:\Windows
:: ------------------------------------------------------------- 
 
:: Reading Global PATH from Registry... 
 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    Path    REG_EXPAND_SZ    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jdk1.6.0_27\bin
 
 
:: Reading User PATH from Registry... 
 
 
ERROR: The system was unable to find the specified registry key or value.
 
Done
 
 
 
 
It worked the second time I ran it... weird. Thank you so much!!!!!

  • 0

#10
SleepyDude

SleepyDude

    Trusted Helper

  • Malware Removal
  • 4,401 posts

It worked the second time I ran it... weird. Thank you so much!!!!!

 

The change only become active for new instances of the programs, if the command prompt is already open when you run the fix, then you have to close it and open again.

 

You are welcome.


  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP