Go Back   PCMech Forums > Help & Discussion > Software Discussion & Support

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 08-22-2008, 03:55 AM   #1
Member (7 bit)
 
rapidarp's Avatar
 
Join Date: Jan 2003
Location: California, US
Posts: 107
Send a message via MSN to rapidarp
Command Prompt Troubles

First off, I apologize for posting a DOS question here....figured it'd have a better chance of getting answered.

Anyway, I'm using an old Sony Vaio machine that i purchased back in 2002 (ya, I need a major upgrade now) and it's running XP Home version 5.1.2. When I go to start->run->cmd and type ipconfig it says it's not a recognized command. Just a couple months ago I did this and it worked fine. I also tried netstat and it still said it wasn't recognized.

It also has a problem switching directories. For example, to get to a Perl script, I'd type D:\Code\Perl\Script1.pl but it often says something to the effect of "unspecified directory." Sometimes, it wont point to a directory no matter how many times I try to type it. Sometimes it works if i /cd each directory one at a time, but even that doesn't always work.

Can anyone tell me what's wrong? Do I need a different version of DOS or something? Is there anything I can do to fix this issue?

Thank you.

Last edited by rapidarp; 08-22-2008 at 03:56 AM. Reason: Spelling
rapidarp is offline   Reply With Quote
Old 08-22-2008, 05:42 AM   #2
Ride 'em Cowboy
 
EzyStvy's Avatar
 
Join Date: Dec 1999
Location: Dallas, Tx
Posts: 9,109
D:\Code\Perl\Script1.pl
Script1.pl is a file name isn't it?

It depends on where you start when you try to change directories...

Try-> D: to get to the D drive
Then->cd D:\Code\Perl to get to that directory.
__________________
Stand Up 2 Cancer - SU2C
EzyStvy is offline   Reply With Quote
Old 08-22-2008, 10:49 AM   #3
glc
Forum Administrator
Staff
Premium Member
 
glc's Avatar
 
Join Date: May 2000
Location: Joplin MO
Posts: 37,777
Path problems.

Control panel, system, advanced, environment variables. That's where you can edit the path, like you used to with autoexec.bat.
glc is offline   Reply With Quote
Old 08-22-2008, 06:15 PM   #4
Member (7 bit)
 
rapidarp's Avatar
 
Join Date: Jan 2003
Location: California, US
Posts: 107
Send a message via MSN to rapidarp
This is what was listed under the System Variables - PATH section:

D:\Perl\site\bin;D:\Perl\bin;

Is there anything that needs to be added?
rapidarp is offline   Reply With Quote
Old 08-23-2008, 10:45 PM   #5
Member (7 bit)
 
rapidarp's Avatar
 
Join Date: Jan 2003
Location: California, US
Posts: 107
Send a message via MSN to rapidarp
Quote:
Originally Posted by glc View Post
Path problems.

Control panel, system, advanced, environment variables. That's where you can edit the path, like you used to with autoexec.bat.

Ok I got them to work again...I copied the PATH that was on the other computer on my network. I'm good to go.
rapidarp is offline   Reply With Quote
Old 08-28-2008, 11:15 PM   #6
Member (7 bit)
 
rapidarp's Avatar
 
Join Date: Jan 2003
Location: California, US
Posts: 107
Send a message via MSN to rapidarp
Ok, the commands work, but I still seem to be having problems opening directories. It seems like if the directory name is is 5/6 or more characters long, I have type the first 5/6 letters followed by ~1. For example, to cd\ into the directory My Documents, I have to enter cd\MYDOCU~1\. A lot of times, this simply won't work.

Even directories will short names such as "java" seem impossible to cd\ into.

Anyone know how to fix this, if can even be fixed?
rapidarp is offline   Reply With Quote
Old 08-29-2008, 01:56 AM   #7
glc
Forum Administrator
Staff
Premium Member
 
glc's Avatar
 
Join Date: May 2000
Location: Joplin MO
Posts: 37,777
If you are using the 16 bit command shell (command) that is normal. It uses strict 8.3 DOS syntax. The 32 bit command shell (cmd) will get you around that.
glc is offline   Reply With Quote
Old 08-29-2008, 02:02 AM   #8
Member (7 bit)
 
rapidarp's Avatar
 
Join Date: Jan 2003
Location: California, US
Posts: 107
Send a message via MSN to rapidarp
Quote:
Originally Posted by glc View Post
If you are using the 16 bit command shell (command) that is normal. It uses strict 8.3 DOS syntax. The 32 bit command shell (cmd) will get you around that.
I use cmd. I go Start->Run->cmd
rapidarp is offline   Reply With Quote
Old 08-29-2008, 05:09 AM   #9
Ride 'em Cowboy
 
EzyStvy's Avatar
 
Join Date: Dec 1999
Location: Dallas, Tx
Posts: 9,109
The command to type can also depend on where you're starting from...

Instead of->cd\MYDOCU~1\

Try-> cd C:\mydoc~1
EzyStvy is offline   Reply With Quote
Old 08-29-2008, 09:01 AM   #10
glc
Forum Administrator
Staff
Premium Member
 
glc's Avatar
 
Join Date: May 2000
Location: Joplin MO
Posts: 37,777
My Documents is not off the root of C. It's a link to c:\documents and settings\username\my documents.
glc is offline   Reply With Quote
Old 08-29-2008, 10:09 AM   #11
Member (7 bit)
 
rapidarp's Avatar
 
Join Date: Jan 2003
Location: California, US
Posts: 107
Send a message via MSN to rapidarp
Quote:
Originally Posted by glc View Post
My Documents is not off the root of C. It's a link to c:\documents and settings\username\my documents.
I know it isn't off the root C. I was just giving a quick example.
rapidarp is offline   Reply With Quote
Old 08-29-2008, 10:11 AM   #12
Member (7 bit)
 
rapidarp's Avatar
 
Join Date: Jan 2003
Location: California, US
Posts: 107
Send a message via MSN to rapidarp
Quote:
Originally Posted by EzyStvy View Post
Try-> cd C:\mydoc~1

That seems to have solved it.
rapidarp is offline   Reply With Quote
Old 08-29-2008, 10:42 AM   #13
Ride 'em Cowboy
 
EzyStvy's Avatar
 
Join Date: Dec 1999
Location: Dallas, Tx
Posts: 9,109
Long Live Dos
EzyStvy is offline   Reply With Quote
Old 08-29-2008, 05:58 PM   #14
Member (7 bit)
 
rapidarp's Avatar
 
Join Date: Jan 2003
Location: California, US
Posts: 107
Send a message via MSN to rapidarp
Quote:
Originally Posted by EzyStvy View Post
Long Live Dos

Last edited by rapidarp; 08-29-2008 at 06:54 PM.
rapidarp is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:58 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2