You can display the disk directory,
time and date without using DOS:

Dir	Display directory
	
Date	Display date
Time	Display time

Try each of these commands. Note the
-More- dialog box at the top.

The directory filenames are truncated
because the default four across is too
wide for the narrow window. The next
command displays it two across:

Dir("",COUNT,2)  Display directory,
		 2 across

--- Press <Ctrl-A> to continue ---








The "Sys" command will run a single DOS
command or program and immediately
return to VEDIT. "Sys" is similar to the
menu function {MISC, Run DOS Program}.

Sys("dos-command",DOS)

For example, to let DOS display the
directory and run the program CHKDSK,
give the following commands:

Sys("dir",DOS)

Sys("chkdsk",DOS)

Technical Note:
Although too complex for this tutorial,
it is possible to give the "Sys" command
with a "variable" DOS command, i.e. the
DOS command is stored in a "text
register".

--- Press <Ctrl-A> to continue ---





To temporarily enter DOS, give the
"Sys" command without arguments. This
is identical to the menu function
{MISC, DOS Shell}.

This will start a DOS box within
Windows. You can run as many DOS
commands or other programs as you like.
Give the DOS command "exit" to return
to VEDIT.

REMEMBER: You must give the DOS command
	  "exit" to return to VEDIT and
	  this tutorial.

Type:   Sys		(and <Enter>)

--- Press <Ctrl-A> to continue ---










The "Sys" command can also be used to
start other Windows programs. The next
command starts Notepad to edit the
"c:\config.sys" file, assuming you have
one. (It is OK if the command you enter
wraps to multiple lines.)

Sys("notepad c:\config.sys")

Note: In some cases, Notepad will start,
      (see your taskbar), but you will
      remain in VEDIT; click the taskbar
      to switch to Notepad.

--- Press <Ctrl-A> to continue ---













The little known Windows 95/NT "start"
command launches the program associated
with the specified file, similar to
double-clicking on the file in Explorer.

The VEDIT "Sys" command can use this to
launch associated programs. For example,
assuming you have a Web browser
associated with Web addresses, e.g.
Internet Explorer, you can visit our
Website with the command:

sys("start http://www.vedit.com")

--- Press <Ctrl-A> to exit this
--- tutorial topic and return
--- to normal editing
