1.

Solve : renaming a directory?

Answer»

I want to rename a directory without using Windows to do it. 
I assume it goes like:

ren Compaq_Owner Diane

and that's it!  Am I right?

THANKS alot
DianeGo ahead and try it - works for me (XP Home)It says:

"The system cannot find the file specified."


Thanks
Diane
Are you doing this from the FOLDER above Compaq_Owner? I get the impression you may not be aware of the idea of changing directories.
This post shows that the directory Compaq_Owner is a sub-directory of Documents and Settings so to do anything with it you have to complete the path like Documents and Settings\Compaq_Owner or, as Dias suggests change your default directory to Documents and Settings.

My default directory is Documents and Settings with Compaq_Owner as a subdirectory. 

Like earlier, you pointed out to me probably it's not a good idea to change the Documents and Settings directory name.  Is changing Compaq_Owner a better bet in changing?  I hate having to type so many letters in to change a directory is what the problem is. 

Thanks
DianeHave you tried command completion? Type cd c:\docu and then press the tab KEY. See what happens.

Quote from: dimilinowski on July 31, 2008, 05:44:03 AM

My default directory is Documents and Settings with Compaq_Owner as a subdirectory. 

Like earlier, you pointed out to me probably it's not a good idea to change the Documents and Settings directory name.  Is changing Compaq_Owner a better bet in changing?  I hate having to type so many letters in to change a directory is what the problem is. 

I've just re-read the quoted post and if your problem is typing so many letters to CD that can easily be sorted.  You could just type one letter to CD to a specific directory\subdirectory\subdirectoy\subdirectory\filename...  You could also open the Command Prompt window by using a desktop shortcut...  Interested Whoa - please back off !!!
Assuming you are using Windows XP or Vista this is a mine field.

Please use the DOS command SET.
This will show a list of environmental variables.
Included should be :-
USERPROFILE=C:\Documents and Settings\Compaq_Owner

I do not know how Windows does it, but when it starts and you log on, it determines your user profile, and your emails etc. are kept private in the above folder and are private from those of other user profiles.

An awful lot of Windows hinges upon USERPROFILE.
Change any PART of the name "C:\Documents and Settings\Compaq_Owner" and you will lose your emails etc., and you may find you have lost Windows altogether - but at least you will get experience of booting into the BIOS !!!

Do you really have to type any letters to change directory ?  I use
Start => Run... => Open =>
I then type "CMD" and I get an imitation DOS / Command Shell, and automatically it shows me a DOS prompt
C:\Documents and Settings\Dad>
(Because my DAUGHTER owned this computer when a "Dad" profile was added for me.)
From there I have immediate access to "My Documents" and everything beyond, without ever having to type "C:\Documents and Settings\Dad".

An alternative to Start => Run... => Open => is a desktop shortcut, which can be aimed anywhere, including :-
"C:\Documents and Settings\Compaq_Owner"

Regards
Alan


Discussion

No Comment Found