Hi All,
Can anyone please let me know how I can move the output file to another location like "Common Files"?
We are using a customized script to import application data which we will receive from other system every morning via schedulers. And the script runs automatically using a batch script and generates an excel with the data that is imported. I would like to save these file into common locations folder in the server. Can someone please help on how to fix it?
Thanks & Best Regards,
Srinivas.
Hi Srinivas,
Using the scriptrunner.bat you have this option:
- Copy the original "scriptrunner.bat" to a "YourOwn_scriptrunner.bat"
- on your cfg file you can specify the output location
# path and name of outputfile. Only relevant if outputformat != -1 # example: D:/Evaluations/Reports/MyResult.html scriptrunner.outputfile=E:/ARIS7.5/server/Always_the_Same_Name.XLS
- then on YourOwn_scriptrunner.bat after running the script you can copy it to any other place, or even make a backup with a timestamp.
@echo off REM ********************************** REM *** Start ARIS Server Script *** REM ********************************** echo %DATE% - %TIME% - Starting MyOwn_scriptrunner.bat REM ************************************************************************* REM *** Setings for Environment variables for ARIS Script Runner REM ************************************************************************* echo %DATE% - %TIME% - Setings for Environment variables for ARIS Script Runner call env.bat Set Server_Home=%CD% Set ARIS_Classpath="%ARIS_classpath%";./lib/* Set Timestamp=%DATE:~-4%%DATE:~3,2%%DATE:~0,2%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2% REM ************************************************************************* REM *** Call of ARIS Script Runner for Configuration file %1 REM ************************************************************************* echo %DATE% - %TIME% - Call of ARIS Script Runner for Configuration file %1 "%JVM_Path%\bin\java.exe" -Daris.server.home="%Server_Home%" -Djava.endorsed.dirs="%Server_Home%\endorsed" -classpath %ARIS_Classpath% com.idsscheer.aris.server.tools.scriptrunner.AScriptRunner %1 REM ************************************************************************* REM *** Clean ARIS_Classpath variable REM ************************************************************************* Set ARIS_Classpath= REM ************************************************************************* REM *** Copy the result file to destination folder & delete it locally REM ************************************************************************* copy Always_the_Same_Name.XLS E:\DataExchange_Folder\New_FileName_or_not.XLS copy Always_the_Same_Name.XLS "E:\Backup_Folder\%Timestamp%_Backup_of_New_FileName_or_not.XLS" del Always_the_Same_Name.XLS
I hope that this approach could help you...
Best Regards,
José LOURO