Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Computer Forum


You are currently viewing our Computer Forum as a guest. Please register to participate.
Login



Reply
Solve command not recognized problem..
Old 12-10-2010, 12:05 PM Solve command not recognized problem..
rahulraj's Avatar
Ultra Talker

Posts: 456
Name: RAHUL RAJ
Location: Cochin, Kerala, India
Trades: 0
When I was trying to ping via command prompt, I got an error message
"ping not recognized as internal or external command". From the Google search I found some results. Similar kind of problems occurred for 'ipconfig' also. I am sharing you the solution that I found from Google search.

  1. Right click on 'My Computer'. Go for properties.
  2. Click on 'Advanced System Settings'.
  3. Click on 'Advanced' and go to 'Environment variables'.
  4. Set both system and user path variables to C:\Windows\System32

Restart the command prompt..

We can also add linux commands like cp, ls, alias etc to windows! Just copy and paste the following codes into notepad, save it as batch file and copy them to system32 directory.

for ls :
@echo off
dir %*

for cp:
@echo off
copy %*

for man:
@echo off
help %*

for alias:
@echo off

rem bare "alias" should display all aliases
if (%1) == () goto LIST

rem "alias /?" should show the usage message
if (%1) == (/?) goto USAGE

rem capture name of alias
set tofile=%1
echo @echo off > C:\custom-path\%tofile%.bat
shift

rem build target command
set thecommand=%1

:CONTINUEBUILDING
shift
if (%1) == () goto DONEBUILDING
set thecommand=%thecommand% %1
goto CONTINUEBUILDING

DONEBUILDING

echo %thecommand% %%* >> C:\custom-path\%tofile%.bat
goto END

:USAGE
echo alias from-command to-command
echo creates C:\custom-path\from-command.bat which calls to-command
goto END

:LIST
dir /b C:\custom-path
goto END

:END



for rm:
@echo off
del %*

for cat:
@echo off
type %*

for mv:
@echo off
move %*
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by rahulraj; 12-10-2010 at 12:09 PM..
rahulraj is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Solve command not recognized problem..
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.43016 seconds with 12 queries