Profile picture for user nivas4310

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.

by Jose Louro
Posted on Fri, 07/25/2014 - 15:46

Hi Srinivas,

you say that "the script runs automatically using a batch script"...

Are you using

  • the scriptrunner.bat on the server or
  • the Scheduling folder on the Explorer View ?

Best Regards

José LOURO

0
by Srinivas CH Author
Posted on Mon, 07/28/2014 - 08:17

In reply to by Jose Louro

Hi Jose,

We are using the script runner on the server.

Best Regards,

Srinivas.

0
by Jose Louro
Posted on Mon, 07/28/2014 - 11:07

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

 

0
by Srinivas CH Author
Posted on Wed, 07/30/2014 - 07:25

Hi Jose Louro,

Thank you so much its working :)

Best Regards,

Srinivas.

 

0
by Przemysław Popławski
Posted on Tue, 12/02/2014 - 12:22

Works fine

But is there a solution for Scheduling folder on the Explorer View?

 

Best regards,

Przemyslaw Poplawski

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock