MoveInputFileAfterProcessing

Top  Previous  Next

×V2.1Ø

S

A

W

WS

ü

ü

Valid for: SetStartup

 

Syntax -

SetStartup MoveInputFileAfterProcessing <FilePathAndName>

       Where:

               <FilePathAndName> is a literal string.

 

Description:

This option defines the path to the directory where EMUE should move the input file after the script finishes processing - similar to the ORIGINAL folder with OLIE.  The path must be valid and accessible to the workstation on which EMUE is running.  If not provided, the input file will not be moved after processing.  If EMUE encounters an error and if the SetStartup command MoveInputFileAfterProcessingOnError is set to "Yes," then the input file will still be moved to the specified folder.  If MoveInputFileAfterProcessingOnError is set to "No" and EMUE encounters an error then the input file will not be moved.  This option values the Post-Move textbox on the Main tab on the main EMUE window.  If no filename is provided, EMUE will move the file without renaming it.

The following replacements may be used in the file name.

Term

Will be replaced by

#TODAY#

The current  date in the format MMDDYY

#DATE#

The current date in the format MMDDYY

#NOW#

The current time in the format hhmmss

#TIME#

The current time in the format hhmmss

#INPUTFILENAME#

The name of the current input file without path or extension

#SCRIPTFILENAME#

The name of the current script file without path or extension

#SCRIPTFOLDER#

The name of the folder path where the current script file is located

#COMPUTERNAME#

The name of the computer where the script is running

 

Note: If SetInputFile is used to changed to change the input file during processing, the previous input file is no longer accessible and the new input file will be file that is affected by this command.   A MoveFile command with "InputFile" as the source can be used before SetInputFile in order to move a previous input file.

 

Note: If the input file is moved using a MoveFile command, then the MoveInputFileAfterProcessing setting is ignored.  Using a CopyFile command on the input file will not prevent MoveInputFileAfterProcessing from moving the input file.

 

Sample 1:

       The following statement instructs EMUE to move the input file the directory and adding a date and time to it.

SetStartup MoveInputFileAfterProcessing "C:\PostProcessingDirectory\#INPUTFILENAME#_#TODAY#_#TIME#.txt"

 

Sample 2:

       The following statement instructs EMUE to move the input file the directory PostProcessingDirectory without renaming it.

SetStartup MoveInputFileAfterProcessing "C:\PostProcessingDirectory\"

 

 

 

See Also:

MoveInputFileAfterProcessingOnError

MoveInputFile

InputFile