New Ytest
Sign out
Bimmerpost
Login
BMW E39 5-Series Forum | 5Post.com
BMW Garage BMW Meets Register Search Today's Posts Mark Forums Read  
Go Back   BMW E39 5-Series Forum | 5Post.com > BIMMERPOST Universal Forums > Off-Topic Discussions Board > Video + PC Gaming / Computing

Post Reply
 
Thread Tools Search this Thread
      01-30-2008, 04:39 PM   #1
hl0m4n
Major General
hl0m4n's Avatar
United_States
2143
Rep
5,623
Posts

 
Drives: BMW
Join Date: Nov 2006
Location: NY

iTrader: (58)

Question Windows DOS Command Help

how do we make subdirectories and remove them? also for windows xp/vista and DOS do we use C> commandname or C:\ commandname?

i need help guys. thanks again.
Appreciate 0
      01-30-2008, 04:46 PM   #2
scottwww
Brigadier General
scottwww's Avatar
United_States
534
Rep
4,760
Posts

 
Drives: 07 BMW 335i, 15 Infiniti Q60S
Join Date: Dec 2006
Location: USA

iTrader: (0)

md foldername
rd foldername

Depends on the location of the file. If the location is defined in your path= command, then just type the name of the command. If it is in the command interpreter, you never type the path.
__________________
2007 BMW 335i E92, Montego Blue on Cream Beige, MT, ZSP, ZPP, CA, PDC, CWP and Style 188 for winter
Appreciate 0
      01-30-2008, 04:46 PM   #3
toofasttooslow
Galactic Emperor
toofasttooslow's Avatar
75
Rep
801
Posts

 
Drives: Fast
Join Date: Mar 2007
Location: WA

iTrader: (3)

C:\>mkdir test

C:\>dir |findstr test
01/30/2008 02:45 PM <DIR> test

C:\>rmdir test

C:\>dir |findstr test

C:\>
Appreciate 0
      01-30-2008, 04:49 PM   #4
OC Guy
General
OC Guy's Avatar
United_States
530
Rep
18,123
Posts

 
Drives: AW 335D E90
Join Date: Oct 2006
Location: Irvine/Aliso Viejo, CA

iTrader: (9)

Garage List
2007 335i  [0.00]
use rd and md, it's faster than mkdir.
cd \ to go to root.
__________________

Current: 2010 Alpine White 335D LCI l 19" BBS LMs l KW V2 Coilovers l BMW Performance Grilles l MSport Front/Rear l Karbonwerke Trunk l F1 Pinnacle Tint 35% Former: E92 Space Grey 335i Latest pics
Appreciate 0
      01-30-2008, 04:56 PM   #5
hl0m4n
Major General
hl0m4n's Avatar
United_States
2143
Rep
5,623
Posts

 
Drives: BMW
Join Date: Nov 2006
Location: NY

iTrader: (58)

thanks guys. so if i wanted to copy files from drive a to drive c lets say command would be C> copy a:file name c:

as for the the subdirectories, let say i wanted to make them on drive c or in a folder.

drive c would be md c: filename and in a folder would be md c:/foldername/file name?
Appreciate 0
      01-30-2008, 05:07 PM   #6
scottwww
Brigadier General
scottwww's Avatar
United_States
534
Rep
4,760
Posts

 
Drives: 07 BMW 335i, 15 Infiniti Q60S
Join Date: Dec 2006
Location: USA

iTrader: (0)

For an individual file, if you are copying from the current directory on A: to the current directory on C: you would specify the file name and extension:
copy a:filename.ext c:
or if you need to specify the directory, it is like this:
copy a:\folder\filename.ext c:\folder\folder\
Then if you want to copy all the files in the current directory on A: to the current directory on C: it is like this:
copy a:*.* c:
If your command prompt is in the destination directory on C: already, to copy the files found in the current directory on A: you could simply type:
copy a:*.*
If your command prompt is in the destination directory on C: already, if you want to copy all the files and the subdirectories from the current directory on A: then I think the command is:
copy a:*.* /s
__________________
2007 BMW 335i E92, Montego Blue on Cream Beige, MT, ZSP, ZPP, CA, PDC, CWP and Style 188 for winter
Appreciate 0
      01-30-2008, 06:07 PM   #7
hl0m4n
Major General
hl0m4n's Avatar
United_States
2143
Rep
5,623
Posts

 
Drives: BMW
Join Date: Nov 2006
Location: NY

iTrader: (58)

^ wow that is great description and info. thanks for that man.

question though and this is what my main question implies.

lets say i want to erase joint.txt from drive a. every internet site on DOS i go to tells me to type in this.

C> erase a:joint.txt

now i can just type in:

erase a:joint.txt and it will work the same?

so the C> isn't necessary.

ive seen some people use C:\>erase
Appreciate 0
      01-30-2008, 06:15 PM   #8
OC Guy
General
OC Guy's Avatar
United_States
530
Rep
18,123
Posts

 
Drives: AW 335D E90
Join Date: Oct 2006
Location: Irvine/Aliso Viejo, CA

iTrader: (9)

Garage List
2007 335i  [0.00]
c:\ just tells u that you are in the root of c. Go to the directory you need to go to and delete from there.

BTW, use "DEL filename.ext"
__________________

Current: 2010 Alpine White 335D LCI l 19" BBS LMs l KW V2 Coilovers l BMW Performance Grilles l MSport Front/Rear l Karbonwerke Trunk l F1 Pinnacle Tint 35% Former: E92 Space Grey 335i Latest pics
Appreciate 0
      01-30-2008, 09:06 PM   #9
mds82
Major General
mds82's Avatar
362
Rep
5,842
Posts

 
Drives: 2006 325xi
Join Date: Aug 2005
Location: South Central Connecticut

iTrader: (40)

Garage List
cd\
Format c: /x


OK please dont do that...

There are a lot of tutorials online on using command prompt commands
Appreciate 0
      01-30-2008, 10:04 PM   #10
The_Blob
Second Lieutenant
The_Blob's Avatar
479
Rep
298
Posts

 
Drives: 2008 E92 335i
Join Date: Dec 2005
Location: Canada

iTrader: (0)

MAKE DIRECTORY = mkdir C:\hello\people

REMOVE SUBDIRECTORY = rd C:\hello\people

If you want to delete everything, including all your directories and subdirectories, I mean everything, without formating your drive.....

do this = deltree /y C:\
Appreciate 0
      01-30-2008, 10:16 PM   #11
Black Chili
IT geek
Black Chili's Avatar
United_States
6
Rep
187
Posts

 
Drives: M4 Black Saphire Metalic
Join Date: Mar 2007
Location: Huntington Beach, CA

iTrader: (0)

Where you execute these types of commands is irrelevent these days. Oldsters remember when you typed something at the dos prompt it would only look for that command in the same folder you were at on the C drive, plus wherever the PATH= statement said to look after it couldn't find the command or utility where you were at.

MD, RD, copy, del and others are shell commands- meaning there sort of built-in and available anywhere at any time, just type in the command with the qualifiers like rd c:\windows (don't do that..). Open a dos window and just type HELP and you'll see all the shell or command line commands along with explainations of what they do... e.g....

ASSOC Displays or modifies file extension associations.
ATTRIB Displays or changes file attributes.
BREAK Sets or clears extended CTRL+C checking.
BCDEDIT Sets properties in boot database to control boot loading.
CACLS Displays or modifies access control lists (ACLs) of files.
CALL Calls one batch program from another.
CD Displays the name of or changes the current directory.
CHCP Displays or sets the active code page number.
CHDIR Displays the name of or changes the current directory.
CHKDSK Checks a disk and displays a status report.
CHKNTFS Displays or modifies the checking of disk at boot time.
CLS Clears the screen.
CMD Starts a new instance of the Windows command interpreter.
COLOR Sets the default console foreground and background colors.
COMP Compares the contents of two files or sets of files.
COMPACT Displays or alters the compression of files on NTFS partitions.
CONVERT Converts FAT volumes to NTFS. You cannot convert the
current drive.
COPY Copies one or more files to another location.
DATE Displays or sets the date.
DEL Deletes one or more files.
DIR Displays a list of files and subdirectories in a directory.
DISKCOMP Compares the contents of two floppy disks.
DISKCOPY Copies the contents of one floppy disk to another.
DISKPART Displays or configures Disk Partition properties.
DOSKEY Edits command lines, recalls Windows commands, and
creates macros.
DRIVERQUERY Displays current device driver status and properties.
ECHO Displays messages, or turns command echoing on or off.
ENDLOCAL Ends localization of environment changes in a batch file.
ERASE Deletes one or more files.
EXIT Quits the CMD.EXE program (command interpreter).
FC Compares two files or sets of files, and displays the
differences between them.
FIND Searches for a text string in a file or files.
FINDSTR Searches for strings in files.
FOR Runs a specified command for each file in a set of files.
FORMAT Formats a disk for use with Windows.
FSUTIL Displays or configures the file system properties.
FTYPE Displays or modifies file types used in file extension
associations.
GOTO Directs the Windows command interpreter to a labeled line in
a batch program.
GPRESULT Displays Group Policy information for machine or user.
GRAFTABL Enables Windows to display an extended character set in
graphics mode.
HELP Provides Help information for Windows commands.
ICACLS Display, modify, backup, or restore ACLs for files and
directories.
IF Performs conditional processing in batch programs.
LABEL Creates, changes, or deletes the volume label of a disk.
MD Creates a directory.
MKDIR Creates a directory.
MKLINK Creates Symbolic Links and Hard Links
MODE Configures a system device.
MORE Displays output one screen at a time.
MOVE Moves one or more files from one directory to another
directory.
OPENFILES Displays files opened by remote users for a file share.
PATH Displays or sets a search path for executable files.
PAUSE Suspends processing of a batch file and displays a message.
POPD Restores the previous value of the current directory saved by
PUSHD.
PRINT Prints a text file.
PROMPT Changes the Windows command prompt.
PUSHD Saves the current directory then changes it.
RD Removes a directory.
RECOVER Recovers readable information from a bad or defective disk.
REM Records comments (remarks) in batch files or CONFIG.SYS.
REN Renames a file or files.
RENAME Renames a file or files.
REPLACE Replaces files.
RMDIR Removes a directory.
ROBOCOPY Advanced utility to copy files and directory trees
SET Displays, sets, or removes Windows environment variables.
SETLOCAL Begins localization of environment changes in a batch file.
SC Displays or configures services (background processes).
SCHTASKS Schedules commands and programs to run on a computer.
SHIFT Shifts the position of replaceable parameters in batch files.
SHUTDOWN Allows proper local or remote shutdown of machine.
SORT Sorts input.
START Starts a separate window to run a specified program or command.
SUBST Associates a path with a drive letter.
SYSTEMINFO Displays machine specific properties and configuration.
TASKLIST Displays all currently running tasks including services.
TASKKILL Kill or stop a running process or application.
TIME Displays or sets the system time.
TITLE Sets the window title for a CMD.EXE session.
TREE Graphically displays the directory structure of a drive or
path.
TYPE Displays the contents of a text file.
VER Displays the Windows version.
VERIFY Tells Windows whether to verify that your files are written
correctly to a disk.
VOL Displays a disk volume label and serial number.
XCOPY Copies files and directory trees.
WMIC Displays WMI information inside interactive command shell.
Appreciate 0
      01-30-2008, 11:45 PM   #12
spacedogg
Colonel
spacedogg's Avatar
Canada
194
Rep
2,816
Posts

 
Drives: Debadged
Join Date: Aug 2006
Location: Vancouver, BC

iTrader: (0)

Quote:
Originally Posted by The_Blob View Post
MAKE DIRECTORY = mkdir C:\hello\people

REMOVE SUBDIRECTORY = rd C:\hello\people

If you want to delete everything, including all your directories and subdirectories, I mean everything, without formating your drive.....

do this = deltree /y C:\
good ol' deltree.

the good ol' days
Appreciate 0
      01-31-2008, 11:37 AM   #13
fizzle
is it the 5oclock free crack giveaway?
fizzle's Avatar
United_States
232
Rep
17,453
Posts

 
Drives: a motorized vee-hickle
Join Date: May 2007
Location: North Jersey

iTrader: (14)

wow i barely use DOS anymore; i have forgotten the fun! /sarcasm
Appreciate 0
      01-31-2008, 03:36 PM   #14
KanosWRX
Lieutenant
KanosWRX's Avatar
United_States
10
Rep
412
Posts

 
Drives: E92 AW 335i / 1994 Miata R
Join Date: Nov 2007
Location: Fairfax, VA

iTrader: (0)

Wow, a blast from the past Actually the old command line days of Windows are coming back. Take a look at PowerShell, one amazing tool to come out of MS.
__________________
"The most important mod is the one behind the steering wheel" - Koyokid RIP
Appreciate 0
      01-31-2008, 08:51 PM   #15
The_Blob
Second Lieutenant
The_Blob's Avatar
479
Rep
298
Posts

 
Drives: 2008 E92 335i
Join Date: Dec 2005
Location: Canada

iTrader: (0)

I still use DOS 90% of the time. I grew up with DOS. I started with Windows 1.0, but I liked DOS several thousand times better. DOS is equivalent to Google. Powerful, you type it, it does it.
Appreciate 0
Post Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off



All times are GMT -5. The time now is 09:17 AM.




5post
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
1Addicts.com, BIMMERPOST.com, E90Post.com, F30Post.com, M3Post.com, ZPost.com, 5Post.com, 6Post.com, 7Post.com, XBimmers.com logo and trademark are properties of BIMMERPOST