Saturday 4 June 2011

Can some experienced Windows Command Prompt users give me some tips?

I have recently become entranced with the mysteries of cmd.exe, for Windows XP. If anyone could just give us a little walk-through, that would be great.


But I know that describing the entire the entire program could take pages and pages. So, If you have extensive experience in:





-retrieving passwords of other accounts ( I know how to change them, not that hard)


-retrieving other user account information such as files and programs


-using the directory; I just don%26#039;t know what to do after I type in %26quot;dir%26quot;, or %26quot;dir /s%26quot;





Also, when I use cmd.exe, it says %26quot;C:\Documents and Settings\Grey: *this is where I type the command*%26quot; How do I change that? And how do I access files? I know there%26#039;s %26quot;goto%26quot;, but I have no idea how to use that.





cmd.exe is just an interesting and I know some things I ask are quite suspicious, but it%26#039;s just an ambition of mine. I am not trying to disable any blocks or anything. Just a kid who likes computers, and I%26#039;ll probably get you if you use some advanced vocabulary.|||there%26#039;s


%26quot;cd..%26quot; which take you 1 folder back


%26quot;cd foldername%26quot; which take you to that folder after you use dir to list everything


to access file you just type in the fullname of the file assuming your in the directory that it%26#039;s in|||Hey When you are done looking at these things you are going to be the CMD Master. I would type all this up but I do not feel like it and it would take years. I am just going to put youtube links. If you have any questions email me at CaptComputer@live.com





Video One -


http://youtube.com/watch?v=ltI-2Wta6lc





Video Two -


http://youtube.com/watch?v=umW6-YEvZOU%26amp;f鈥?/a>





Video Three -


http://youtube.com/watch?v=h-QFn4AFo9Y%26amp;f鈥?/a>





By the way CMD = Command Prompt and dir /s = directory search


When you use it that is your Profile name thats where everything on your PC is stored like Documents and Desktops. Follow that path way and you will see. My Computer, Local Disk (C drive), Documents and settings, Grey and there you go.





Video 4 -


http://youtube.com/watch?v=nXPOoYv5iP4%26amp;f鈥?/a>





Video 5 -


http://youtube.com/watch?v=OQUHE0H-km4%26amp;f鈥?/a>





Video 6 -


http://youtube.com/watch?v=ifWwpnSolOA%26amp;f鈥?/a>





And a redo


http://youtube.com/watch?v=wkxLsGSXikI%26amp;f鈥?/a>





Now you can messs up your PC like this because I have done it so please do not go to far with it. Hope this helps and again if you have any questions email me CaptComputer@live.com|||To change the directory type: %26#039;cd c:\{directory name}%26#039;. Example: cd c:\windows\system


cd c:\ (takes you to root directory)


cd . ditto


cd .\{directory name} takes you to root then up


one level to {directory name}


cd .. (takes you up one level)


cd ..\{directory name} goes up one level and


then to (directory name)|||I always wonder how command prompt worked all I know is ping and the name of the web site


ping yahoo.com I never knew the point of ping|||As far as using dir (and most other commands) try adding a /? to get a help screen with a list of command line arguments you can use.





The text to the left of the cursor is, by default, the folder where you are currently at. If you change folders that info will change. So if you did:


cd desktop


it would say:


C:\Documents and Settings\Gray\Desktop%26gt;


and if you did dir like this:


dir /p


you would get a list of all the files on your desktop in a page by page style. (It%26#039;ll stop after a screen full and say %26quot;Press any key to continue...%26quot; at the bottom of the screen.)





The goto command is used in batch file scripting, not for accessing files. To run a program or open a document in it%26#039;s default application type the filename. (You might need to do the full path or a referenced path if it%26#039;s not in the current folder.)





The type command can be used to view plain text files in the command window, but using it with a non-text file will give you lots of garbage.





Note that the XP command line features %26quot;auto completion%26quot; so if you type:


cd de


from your initial location and hit tab you should end up with


cd Desktop





Also, one thing to keep in mind is that .. means the folder above you. So if you did:


cd ..\..


from your initial location you would be in the C:\ folder.





You can type help and help (command name here) to get a list of internal commands and get info about specific commands. Just becareful what you mess with in the command prompt %26#039;cause you could potentially screw stuff up.





Edit: Oh, and it%26#039;s possible to customize the prompt using the prompt command. Though I don%26#039;t know if it would remember the changes the next time you start the command prompt.|||type %26quot;help%26quot;. It gives you all the commands. Then after a certain command type /?, eg. c:\test\rename/?





Then it will give you all the options associated with that command.|||Get a book on DOS commands (or search the web) because that%26#039;s what you%26#039;re using in cmd - it%26#039;s a command line interpreter, which was the user interface in DOS, and it uses many of the same commands.





Typing help will give you a list of many of the commands, then help %26lt;command name%26gt; (without the brackets) will give you help on that command (and help command subcommand will give you help on subcommands listed when you get help on a command).