1.

Solve : My C: prompt?

Answer»

I feel like I have alot of problems with the C: prompt in itself.  Alot of times, it won't show files that do certainly exist and I have to go through a number of steps just to get the dir / function to show that the file does exist. 

Is there some type of program available to me to run a diagnostics test on the C: prompt alone?

Thanks
DianePlease define what problem you are having, it may just be a matter of syntax.

What "steps" are they?
This is a snippet, which is in correct Perl form

#!\usr\bin\perl -w
open (MYTEXT, "halloween.txt") || die "Cannot open halloween.txt: $!\n";
print ;
close MYTEXT;


but when I go to run the program, the warning SYSTEM (I'm sorry for forgetting the name of the stupid thing (it's in Perl)  responds "backslash found where operator expected.  Missing operator before \?" and the operator and backslash ARE BOTH THERE AND WHERE THEY'RE SUPPOSED TO BE.  That's why I'm wondering if I have some type of problem with the C: prompt.

Not only that, but many times I will try to open a file from a specific directory and the C: prompt responds with "the file does not exist" even though it does and I have to cd over and over again, and sometimes even have to quit the C: prompt altogether, then reopen it, to be able to locate the file that had just previously "not existed."  Those are the steps I was trying to refer to (having to close and reopen the C:prompt and/or changing the directories several times until C:prompt accepts that it exists and is in the directory.

Other than that, I have opened the C:prompt SEVERAL times and used dir to list out the directory's files and the file that DOES EXIST in Windows will not appear in the list until I do one of those 2 options I've already described.

Please help.
Thanks
Diane



Quote from: dimilinowski on July 30, 2008, 03:20:14 AM

I feel like I have alot of problems with the C: prompt in itself.  Alot of times, it won't show files that do certainly exist and I have to go through a number of steps just to get the dir / function to show that the file does exist. 

Could you answer this question I asked?

Quote from: Dias de verano
What "steps" are they?

Quote
many times I will try to open a file from a specific directory and the C: prompt responds with "the file does not exist" even though it does

Tell us precisely what you are doing.  Give the file name and the directory name and show exactly what you are entering at the COMMAND prompt.

Hey Baby ...!!
I have the same problem..
 It's hard to show you exactly what I'm doing because it doesn't always do it.  I just checked it again, to see if it worked or not, and it did (figures)... but, this is pretty much it...

C:\Documents and Settings\Compaq_Owner\Perl\us.jpg and the C:prompt would respond that that file did not exist or that the path was not specified.  Right now it works.



Otherwise, trying to change the name of the directory Documents and Settings by running the code:

REN Documents and Settings Diane

does not work and responds the system cannot find the file specified.



Trying to implement a new instance of C: prompt without having to exit, I haven't been able to figure out yet, even though I've read all of the help commands available (not really the same issue, though).  I have to exit or close out of the C: prompt alot of times just to cd to another directory--it just won't do it.

These are the first things on my list, I guess.

Thank you
Diane

Quote
REN Documents and Settings Diane does not work and responds the system cannot find the file specified.

Yes, folder/file names which include spaces should be enclosed in "" otherwise the system will look for a one word folder name, in this case Documents.  However, the D & S folder is widely used by the system and if you manage to rename it the system will not be able to find it until you reset necessary Environment Variables, does your level of knowledge allow you to do this?

Quote
Trying to implement a new instance of C: prompt without having to exit, I haven't been able to figure out yet,
While at the Command Prompt enter "Start cmd" (without the "") another Command Prompt window will open.

Quote
I have to exit or close out of the C: prompt alot of times just to cd to another directory--it just won't do it.
Can't advise you on that problem until you tell us exactly what your default directory is and what you are entering at the Command Prompt and give a list of any error messages when this happens. First thing, I can't figure out how to use the freaky quote button.  Every time I highlight something then click "quote" the program quotes EVERYTHING!!!  Please help!!!

Also, "does your level of knowledge allow you to do this?"  No, thank you for giving me a heads up.


"Can't advise you on that problem until you tell us exactly what your default directory is and what you are entering at the Command Prompt and give a list of any error messages when this happens." 
    My default directory is C:\Documents and Settings\Compaq_Owner>
    otherwise, I will compile the list of error messages next time they occur.  Thanks.


Is it safe to ren Compaq_Owner, then?

Thank you
Diane


Quote
First thing, I can't figure out how to use the freaky quote button.  Every time I highlight something then click "quote" the program quotes EVERYTHING!!!  Please help!!!
Hilight what you want to quote and copy it to the clipboard (click edit>copy).  Go to the Post reply form and click on the quote BBC tag (second from right) then paste the quote between the tags (click edit>paste). 

Quote
Is it safe to ren Compaq_Owner, then?
The following is quoted from this site with slight alteration:

Quote
When you create a user account, Windows XP creates and populates a subfolder of the C:\Documents and Settings folder WHOSE name is the account name. In your case, you'll find a folder named C:\Documents and Settings\Compaq-Owner.

If you change the username using the User Accounts applet in Control Panel, Windows will display the changed name in some places, but it will not rename the underlying folder that contains the account's data and files (and, no, you can't rename that folder). It actually says right in the User Accounts applet: "This name will appear on the welcome screen and the start menu." What it doesn't spell out is that the (new) name will NOT be used in numerous other situations.

If you want the computer to refer to you as Diane in all situations, you'll have to create a new user account with that name. You'll probably want to make it an Administrator account. Transfer all your files and settings to the Diane account and LOG in using that account. Use that account for a while. When you're very, very sure you've transferred everything successfully, you can consider deleting the Compaq-Owner account.

That puts it much better than I could.  The Compaq-Owner account and folder would probably have been created during the initial Setup process.

This is part of what I posted earlier Quote
However, the D & S folder is widely used by the system and if you manage to rename it the system will not be able to find it

To get to the command prompt windows are you starting Cmd.exe or Command.com?


Discussion

No Comment Found