Welcome, Guest. Please login or register.

Author Topic: [WINDOWS] Basic Command Prompt CMD Navigation Commands  (Read 1423 times)

Offline Alex(aMacUser)

  • Global Moderator
  • General
  • *****
  • Posts: 1194
  • aMacUser is a name I picked up in High School
    • View Profile
    • eG
[WINDOWS] Basic Command Prompt CMD Navigation Commands
« on: January 09, 2012, 01:21:10 pm »
Code: [Select]
Warning!!!!! Under No Circumstances am I Responsible for anything you choose to do while in command prompt. In command prompt you are editing at a much higher less for giving level than the GUI file explorer. Certain commands can and will delete data stored on your hard-drive.
Code: [Select]
Warning!!!!!Disclaimer If a command deletes data I will tell you. This reference if used correctly will not ruin anything! :P

Ok so this thread contains some basic commands that everyone should know when they decide to use the Command prompt!

Starting CMD
[spoiler]To start off you should Open the cmd via:
For Windows 7 Start>Type "cmd">Press enter
-or-
Start>All Programs>Accessories>Command Propmt 
This one also works for xp and vista
[/spoiler]

Drive Names and Directories
[spoiler]
Code: [Select]
to go to the drive C:
Go to the C: drive. Similarly A: and D: etc.
Basically you can access files on the drive by typing the drive letter followed by a colon. (if you want to find the drive letter go to start>Mycomputer If you know you only have one harddrive then the drive letter by default will be c:)
[/spoiler]

Clearing the Screen
[spoiler]To clear your Command Prompt screen do the command
Code: [Select]
CLS
this Clears the screen.
[/spoiler]

Change Directory Of Subfolders
[spoiler]To change directory on a file and folder basis rather than on a drive basis you can use the cd command. This command is short for Change Directory. If you type the c: code from above you will be in the c drive location. from there you can now cd into sub-directories where files are stored.
Code: [Select]
CD
Change directory. When you change directory, the prompt changes, showing the path of the directory you are currently in.

Note, directory is the term used by DOS for what Windows calls a folder.
Helpful Hint: when typing the name of the directory that you would like to change to you can hit tab after typing the first few letters of the directory and windows will automatically fill in the rest of the directory for you.
[/spoiler]

Directory Command
[spoiler]The DIR command is a very Useful command!
Code: [Select]
DIR
Displays the contents of a directory (folder).

These switches can be combined, so DIR /W /P will return multiple rows listing a page at a time.

You can use the '*' and the '?' wildcards to search for a particular file. The ? character represents ONE character, and the * character represents multiple characters.

DIR *.* lists all the files in a directory.

The DIR command query can be used to find specific file types and other attributes related to files.
Code: [Select]
DIR /P displays the contents a page at a time, i.e. as many as will fit in your command line window. Press any key to display the next page.

DIR /W displays the files/folders in multiple rows. This view gives less information per file.

DIR *.JPG displays all files with the extension JPG in the current directory and all subdirectories.

DIR MY??.* displays all files beginning with MY, exactly 4 characters long, and with any extension.

DIR /S lists the contents of all subdirectories.

DIR /AH displays all hidden files.
[/spoiler]


More
[spoiler]More will be added in the near future!
[/spoiler]

« Last Edit: January 09, 2012, 03:23:52 pm by Tom »

I have a lot of Macs probably 10 <> I do not use them to Game
I use a PC which I have Built myself (check the PC specs topic)

Offline Tom

  • Administrator
  • General
  • *****
  • Posts: 4613
  • Clan Founder
    • View Profile
    • Echo-Gaming.co
Re: Basic Command Prompt CMD Navigation Commands
« Reply #1 on: January 09, 2012, 02:26:12 pm »
Good job! Just a few things to note:

- Some commandline commands will give you an Access denied error if you don't start the cmdline with administrator privileges (Vista/Server 2008/7).
- Filenames are limited to a certain amount of characters. Program Files might appear as Progra~1.


Quote from: John F. Kennedy
Mankind must put an end to war or war will put an end to mankind.

Offline Alex(aMacUser)

  • Global Moderator
  • General
  • *****
  • Posts: 1194
  • aMacUser is a name I picked up in High School
    • View Profile
    • eG
Re: [WINDOWS] Basic Command Prompt CMD Navigation Commands
« Reply #2 on: January 09, 2012, 11:38:08 pm »
Thanks tom~

If anyone else has any additions feel free to add them!!!

I have a lot of Macs probably 10 <> I do not use them to Game
I use a PC which I have Built myself (check the PC specs topic)

Offline iRave

  • [eG] Clan Member
  • General
  • ***
  • Posts: 847
  • BOSS
    • View Profile
Re: [WINDOWS] Basic Command Prompt CMD Navigation Commands
« Reply #3 on: January 11, 2012, 03:59:12 pm »
Me and jonhue coded a installer for:
GTA IV car mods
Skyrim german patch
GTA with all extensions 
And skyrim complete in german :P

Offline Alex(aMacUser)

  • Global Moderator
  • General
  • *****
  • Posts: 1194
  • aMacUser is a name I picked up in High School
    • View Profile
    • eG
Re: [WINDOWS] Basic Command Prompt CMD Navigation Commands
« Reply #4 on: January 18, 2012, 12:50:54 am »
In command prompt ??!?!?  U mean basic or batch right

I have a lot of Macs probably 10 <> I do not use them to Game
I use a PC which I have Built myself (check the PC specs topic)

Offline iRave

  • [eG] Clan Member
  • General
  • ***
  • Posts: 847
  • BOSS
    • View Profile
Re: [WINDOWS] Basic Command Prompt CMD Navigation Commands
« Reply #5 on: January 26, 2012, 05:30:08 pm »
It was batch ;)
But if you code a batch file you use commands that would also work with a cmd.

Btw i can send the installers to you for testing ;) theyre .exe files but its written in batch. Its just cuz we dont want anyone to just copy the files and remove the pics weve inSerted and say they coded it on their own.

Were now trying to learn some xprofan for a graphical interface.
Someone knows that language and could maybe help me with it??
« Last Edit: January 26, 2012, 05:34:28 pm by iRaVe »

Offline Alex(aMacUser)

  • Global Moderator
  • General
  • *****
  • Posts: 1194
  • aMacUser is a name I picked up in High School
    • View Profile
    • eG
Re: [WINDOWS] Basic Command Prompt CMD Navigation Commands
« Reply #6 on: February 14, 2012, 12:41:09 am »
It was batch ;)
But if you code a batch file you use commands that would also work with a cmd.

Btw i can send the installers to you for testing ;) theyre .exe files but its written in batch. Its just cuz we dont want anyone to just copy the files and remove the pics weve inSerted and say they coded it on their own.

Were now trying to learn some xprofan for a graphical interface.
Someone knows that language and could maybe help me with it??
well why cant u just give me the source....You can trust me :) I would enjoy working with you!

I have a lot of Macs probably 10 <> I do not use them to Game
I use a PC which I have Built myself (check the PC specs topic)