Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | .NET CAS Settings Problem

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion
Register FAQ Community Calendar

Using the Command Prompt
Reply
 
Thread Tools
Old 19-09-2005, 21:19   #1
MadGamer
Inactive
 
MadGamer's Avatar
 
Join Date: Jun 2003
Location: Essex
Age: 37
Services: Sky multiroom (Sky Q) Sky Fibre Unlimited Sky Landline
Posts: 8,851
MadGamer has a nice shiny star
MadGamer has a nice shiny starMadGamer has a nice shiny star
Question Using the Command Prompt

Well at college, we've been practising how to create directories on a floppy disk, using the command prompt in Windows XP, what i now want to do is learn how to create a sub directory in the Root directory using command prompt. What command would i use? ie, ive got the root as Wayne, and i want a sub directory as Test.
MadGamer is offline   Reply With Quote
Advertisement
Old 19-09-2005, 21:21   #2
Paul K
Inactive
 
Paul K's Avatar
 
Join Date: Jun 2003
Location: Essex innit
Age: 52
Services: Sky HD + 16Mb ADSL BT Telephone
Posts: 15,735
Paul K is seeing silvered starsPaul K is seeing silvered starsPaul K is seeing silvered starsPaul K is seeing silvered starsPaul K is seeing silvered starsPaul K is seeing silvered starsPaul K is seeing silvered stars
Paul K is seeing silvered starsPaul K is seeing silvered starsPaul K is seeing silvered stars
Re: Using the Command Prompt

isn't MD the make directory command? Don't use the command prompt system very often
Some reading for you
http://www.ss64.com/nt/
and

Quote:
To see a list of commands, open the command window by
Start/Run "cmd" to see a list of supported coomands type
"help" (without the quotes, in each case)
Type a command with a space followed by a slash and question
mark to see a list of the switches such as ...
*************************
C:\Documents and Settings\>help
For more information on a specific command, type HELP
command-name
ASSOC Displays or modifies file extension associations.
AT Schedules commands and programs to run on a
computer.
ATTRIB Displays or changes file attributes.
BREAK Sets or clears extended CTRL+C checking.
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.
DOSKEY Edits command lines, recalls Windows commands, and
creates macros.
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.
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.
GRAFTABL Enables Windows to display an extended character
set in graphics
mode.
HELP Provides Help information for Windows commands.
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.
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.
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.
SET Displays, sets, or removes Windows environment
variables.
SETLOCAL Begins localization of environment changes in a
batch file.
SHIFT Shifts the position of replaceable parameters in
batch files.
SORT Sorts input.
START Starts a separate window to run a specified program
or command.
SUBST Associates a path with a drive letter.
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.

C:\Documents and Settings\>xcopy /?
Copies files and directory trees.

XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S
[/E]] [/V] [/W]
[/C] [/I] [/Q] [/F] [/L] [/G]
[/H] [/R] [/T] [/U]
[/K] [/N] [/O] [/X] [/Y] [/-Y]
[/Z]
[/EXCLUDE:file1[+file2][+file3]...]

source Specifies the file(s) to copy.
destination Specifies the location and/or name of new
files.
/A Copies only files with the archive attribute
set,
doesn't change the attribute.
/M Copies only files with the archive attribute
set,
turns off the archive attribute.
/D:m-d-y Copies files changed on or after the
specified date.
If no date is given, copies only those files
whose
source time is newer than the destination
time.
/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings.
Each string
should be in a separate line in the files.
When any of the
strings match any part of the absolute path
of the file to be
copied, that file will be excluded from being
copied. For
example, specifying a string like \obj\ or
.obj will exclude
all files underneath the directory obj or all
files with the
.obj extension respectively.
/P Prompts you before creating each destination
file.
/S Copies directories and subdirectories except
empty ones.
/E Copies directories and subdirectories,
including empty ones.
Same as /S /E. May be used to modify /T.
/V Verifies each new file.
/W Prompts you to press a key before copying.
/C Continues copying even if errors occur.
/I If destination does not exist and copying
more than one file,
assumes that destination must be a directory.
/Q Does not display file names while copying.
/F Displays full source and destination file
names while copying.
/L Displays files that would be copied.
/G Allows the copying of encrypted files to
destination that does
not support encryption.
/H Copies hidden and system files also.
/R Overwrites read-only files.
/T Creates directory structure, but does not
copy files. Does not
include empty directories or subdirectories.
/T /E includes
empty directories and subdirectories.
/U Copies only files that already exist in
destination.
/K Copies attributes. Normal Xcopy will reset
read-only attributes.
/N Copies using the generated short names.
/O Copies file ownership and ACL information.
/X Copies file audit settings (implies /O).
/Y Suppresses prompting to confirm you want to
overwrite an
existing destination file.
/-Y Causes prompting to confirm you want to
overwrite an
existing destination file.
/Z Copies networked files in restartable mode.

The switch /Y may be preset in the COPYCMD environment
variable.
This may be overridden with /-Y on the command line.
Paul K is offline   Reply With Quote
Old 19-09-2005, 21:23   #3
gazzae
Inactive
 
gazzae's Avatar
 
Join Date: Jun 2003
Location: Belfast
Age: 46
Posts: 4,594
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
Re: Using the Command Prompt

md test would be the command or md wayne\test if you are at root.
gazzae is offline   Reply With Quote
Old 19-09-2005, 21:29   #4
MadGamer
Inactive
 
MadGamer's Avatar
 
Join Date: Jun 2003
Location: Essex
Age: 37
Services: Sky multiroom (Sky Q) Sky Fibre Unlimited Sky Landline
Posts: 8,851
MadGamer has a nice shiny star
MadGamer has a nice shiny starMadGamer has a nice shiny star
Re: Using the Command Prompt

Quote:
Originally Posted by gazzae
md test would be the command or md wayne\test if you are at root.

I'll test that, and let you know how i get on
MadGamer is offline   Reply With Quote
Old 19-09-2005, 21:38   #5
MovedGoalPosts
Inactive
 
MovedGoalPosts's Avatar
 
Join Date: Jun 2003
Location: 127.0.0.1
Age: 61
Posts: 15,868
MovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny stars
MovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny starsMovedGoalPosts has a pair of shiny stars
Re: Using the Command Prompt

Ah the good old days of DOS Still very useful when all else fails.

You can take it all a stage further...

If your prompt relates to the C drive, but you want to mess up say your D drive, or floppy drive A, you can create your directory (sorry folder)
Code:
MD D:\folder\subfolder
To be really clever, albeit that it's not truly dos compatible (only allowed 8 characters, plus a suffix of 3) you can create a long file name directory using quotes:
Code:
MD "D:\folder\long folder name"
MovedGoalPosts is offline   Reply With Quote
Old 19-09-2005, 22:59   #6
MadGamer
Inactive
 
MadGamer's Avatar
 
Join Date: Jun 2003
Location: Essex
Age: 37
Services: Sky multiroom (Sky Q) Sky Fibre Unlimited Sky Landline
Posts: 8,851
MadGamer has a nice shiny star
MadGamer has a nice shiny starMadGamer has a nice shiny star
Re: Using the Command Prompt

ahh right, so using this: MD D:\folder\subfolder

I could have A:\Wayne\Test
MadGamer is offline   Reply With Quote
Old 19-09-2005, 23:03   #7
Wicked_and_Crazy
Inactive
 
Join Date: Jun 2005
Location: Peterborough
Posts: 5,106
Wicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny star
Wicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny starWicked_and_Crazy has a nice shiny star
Send a message via MSN to Wicked_and_Crazy Send a message via Yahoo to Wicked_and_Crazy
Re: Using the Command Prompt

why in this day and age would people be taught DOS commands? The whole point of having a GUI is to stop the user having to remember command names and the syntax of those commands
__________________

Quote:
Originally Posted by Wayne A
ahh right, so using this: MD D:\folder\subfolder

I could have A:\Wayne\Test
yep. specifying the drive letter and the directory structure makes the command independent of the current directory your DOS prompt is in
Wicked_and_Crazy is offline   Reply With Quote
Old 19-09-2005, 23:15   #8
ikthius
Inactive
 
ikthius's Avatar
 
Join Date: Mar 2004
Location: Glasgow, Scotland
Services: anything for a new job
Posts: 4,165
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
Re: Using the Command Prompt

I prefer the MKDIR command myself, it makes more sense to read.

ik
ikthius is offline   Reply With Quote
Old 19-09-2005, 23:21   #9
nffc
cf.mega poster
 
nffc's Avatar
 
Join Date: Jul 2004
Location: chavvy Nottingham
Age: 42
Services: Freeview, Sky+, 100 Mb/s VM BB, mega i7 PC, iPhone 13, Macbook Air
Posts: 7,456
nffc has a nice shiny star
nffc has a nice shiny starnffc has a nice shiny starnffc has a nice shiny starnffc has a nice shiny starnffc has a nice shiny starnffc has a nice shiny starnffc has a nice shiny starnffc has a nice shiny starnffc has a nice shiny starnffc has a nice shiny starnffc has a nice shiny starnffc has a nice shiny starnffc has a nice shiny starnffc has a nice shiny starnffc has a nice shiny starnffc has a nice shiny starnffc has a nice shiny star
Re: Using the Command Prompt

saw this linked on here earlier

MS-DOS help and commands

HTH
__________________


nffc is offline   Reply With Quote
Old 19-09-2005, 23:58   #10
MadGamer
Inactive
 
MadGamer's Avatar
 
Join Date: Jun 2003
Location: Essex
Age: 37
Services: Sky multiroom (Sky Q) Sky Fibre Unlimited Sky Landline
Posts: 8,851
MadGamer has a nice shiny star
MadGamer has a nice shiny starMadGamer has a nice shiny star
Re: Using the Command Prompt

Quote:
Originally Posted by nffc
saw this linked on here earlier

MS-DOS help and commands

HTH
Thanks i'll have a look.
MadGamer is offline   Reply With Quote
Old 20-09-2005, 00:25   #11
timewarrior2001
Guest
 
Location: Teesside
Services: Evilness
Posts: n/a
Re: Using the Command Prompt

Quote:
Originally Posted by Wicked_and_Crazy
why in this day and age would people be taught DOS commands? The whole point of having a GUI is to stop the user having to remember command names and the syntax of those commands
__________________



yep. specifying the drive letter and the directory structure makes the command independent of the current directory your DOS prompt is in


Because in some circumstances you need to understand DOS. Many things dont use GUI's.
And secondly 99% of IT courses in school and college are Soooooooo out of date they use DOS still and teach DOS.
Multi autoexec and multi config files was an old fav of mine, as well as using Debug to search for possible virus infection!!!!!
  Reply With Quote
Old 20-09-2005, 00:44   #12
zoombini
Inactive
 
zoombini's Avatar
 
Join Date: Jun 2003
Location: England
Services: I no longer receive cable services, I blame the inept accounts dept for that.
Posts: 3,731
zoombini has reached the bronze age
zoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze age
Re: Using the Command Prompt

\
mk test (make a da folda)
cd test (go into da folda)
dir (oooh, dere is nothing here)
cd\ (to go back to the root)
dir (oh, I can see wayne - hello wayne)
exit.
oh great, back at windows.
Now go & lie down & promise never to do that command line stuff again, well maybe not until you start using Linux
zoombini is offline   Reply With Quote
Old 20-09-2005, 01:42   #13
MadGamer
Inactive
 
MadGamer's Avatar
 
Join Date: Jun 2003
Location: Essex
Age: 37
Services: Sky multiroom (Sky Q) Sky Fibre Unlimited Sky Landline
Posts: 8,851
MadGamer has a nice shiny star
MadGamer has a nice shiny starMadGamer has a nice shiny star
Re: Using the Command Prompt

Quote:
Originally Posted by zoombini
\
mk test (make a da folda)
cd test (go into da folda)
dir (oooh, dere is nothing here)
cd\ (to go back to the root)
dir (oh, I can see wayne - hello wayne)
exit.
oh great, back at windows.
Now go & lie down & promise never to do that command line stuff again, well maybe not until you start using Linux

Cant make any promises im afraid.
MadGamer is offline   Reply With Quote
Old 20-09-2005, 01:42   #14
Xaccers
Inactive
 
Join Date: Jun 2003
Location: Milling around Milton Keynes
Age: 48
Posts: 12,969
Xaccers has a pair of shiny starsXaccers has a pair of shiny starsXaccers has a pair of shiny starsXaccers has a pair of shiny stars
Xaccers has a pair of shiny starsXaccers has a pair of shiny starsXaccers has a pair of shiny starsXaccers has a pair of shiny starsXaccers has a pair of shiny starsXaccers has a pair of shiny starsXaccers has a pair of shiny starsXaccers has a pair of shiny starsXaccers has a pair of shiny starsXaccers has a pair of shiny starsXaccers has a pair of shiny starsXaccers has a pair of shiny stars
Re: Using the Command Prompt

Quote:
Originally Posted by Wicked_and_Crazy
why in this day and age would people be taught DOS commands? The whole point of having a GUI is to stop the user having to remember command names and the syntax of those commands
Because writing a batch file is much easier than learning VB and doing the same with that.

Take this example:

We have web servers at a remote location, they're running NT4
We have a reporting server with webtrends installed on it which produces monthly reports on web usage.

Previously, the guys would have to log onto a gateway server at the remote location and map a network drive to it.
Then from the gateway server, connect to the web servers, zip up the web logs, map a drive to the web servers from the gateway server, copy the logs over, then copy them to their local PC.
Then map a drive to the reporting server, upload the zipped log files, log onto the reporting server, unzip the files, manually run the web trends report and then clean up all the files.

It used to take hours.
Now, with a few simple batch files, that is all fully automated.
The web trends report appears as if by magic

Now imagine if I didn't know my dos commands... (ok, I've been using it since dos3)
Xaccers is offline   Reply With Quote
Old 20-09-2005, 01:44   #15
MadGamer
Inactive
 
MadGamer's Avatar
 
Join Date: Jun 2003
Location: Essex
Age: 37
Services: Sky multiroom (Sky Q) Sky Fibre Unlimited Sky Landline
Posts: 8,851
MadGamer has a nice shiny star
MadGamer has a nice shiny starMadGamer has a nice shiny star
Re: Using the Command Prompt

Quote:
Originally Posted by Xaccers
Quote:
Originally Posted by Wicked_and_Crazy
why in this day and age would people be taught DOS commands? The whole point of having a GUI is to stop the user having to remember command names and the syntax of those commands
Because writing a batch file is much easier than learning VB and doing the same with that.

Take this example:

We have web servers at a remote location, they're running NT4
We have a reporting server with webtrends installed on it which produces monthly reports on web usage.

Previously, the guys would have to log onto a gateway server at the remote location and map a network drive to it.
Then from the gateway server, connect to the web servers, zip up the web logs, map a drive to the web servers from the gateway server, copy the logs over, then copy them to their local PC.
Then map a drive to the reporting server, upload the zipped log files, log onto the reporting server, unzip the files, manually run the web trends report and then clean up all the files.

It used to take hours.
Now, with a few simple batch files, that is all fully automated.
The web trends report appears as if by magic

Now imagine if I didn't know my dos commands... (ok, I've been using it since dos3)
, but how do i craete a batch file that clears the pagefile on shutdown?
MadGamer is offline   Reply With Quote
Reply


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

Forum Jump


All times are GMT +1. The time now is 00:48.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum