[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+----------------+#########################################################
#+-| SET DEFAULT TO |-------------------------------------------+#############
#| +----------------+ The SET DEFAULT TO command sets the DOS |#############
#| default drive and/or directory to <C-exp> |#############
#+--------------------------------------------------------------+#############
##############################################################################
##############################################################################
#+--| Syntax |--------------------+###########################################
#| SET DEFAULT TO <C-exp> |###########################################
#+--------------------------------+###########################################
##############################################################################
##############################################################################
############+---| Description |-----------------------------------+###########
############| SET DEFAULT TO affects the DOS drive and directory. |###########
############| FORCE does not keep an internal drive or directory. |###########
############+-----------------------------------------------------+###########
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| |#########
#########| SET DEFAULT TO "d:\test" |#########
#########| RUN "c:\command.com" && The current DOS drive |#########
#########| && and directory will be |#########
#########| && d:\test. |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 2 |-------------------------------------------+#########
#########| * Get the current DOS drive/directory prior |#########
#########| * to executing an external program. Then |#########
#########| * reestablish the drive/directory after the |#########
#########| * external program terminates. |#########
#########| |#########
#########| current = curdir( curdrive() ) |#########
#########| RUN programs_to_run[ g ] |#########
#########| SET DEFAULT TO current |#########
#########+----------------------------------------------------------+#########
##############################################################################
See Also:
DIR
ERASE
RENAME
RUN
curdir()
curdrive()
select_drive()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson