bool Run(string)
Return Type: bool
Parameters: string Command
Description:
The Run function runs any operating system command, including commands such
as 'dir'. It will also run executables like the System function, however Run
waits for the new application or process to complete before continuing with
the script.
The input Command is a string containing operating system command. This can
be any executable or batch file recognizable by the operating system. It can
contain either the full path or a relative path.
Example
Code |
1 >>Run("dir");
Volume in drive C is Run
Volume Serial Number is XXXX-XXXX
Directory of C:\Projects\Scripts
03/13/2008 10:05 PM <DIR>
.
03/13/2008 10:05 PM <DIR> ..
02/15/2008 11:43 PM 1,199
access_logs.psc
02/15/2008 10:04 PM 153
download_email.psc
03/07/2008 02:43 PM 4,082
tutorial.psc
03/13/2008 10:05 PM 109
test_application.psc
03/13/2008 09:53 PM 130
write_logs.psc
5 File(s) 5,673 bytes
2 Dir(s) 259,721,732,096 bytes free
|
|