I am trying to create a .bat file which can check if abaqus session is open and if it is open then open its run script prompt. For that i am using following code:
@echo off
if exist c:\SIMULIA\Abaqus\6.14-3\code\bin\abq6143.exe goto openscript
else exit
:openscript
echo "file exist"
abaqus cae noGUi=D:\Saurabh\example\macro1.py
pause
A command window comes with msg "file exist" then the following error comes
Abaqus Licence Manager checked out the following license(s): "cae" release 6.14 from Flexnet server myshec184706d <13 out of 130 licenses remain available>
and the command window suddenly disappears.
"macro1" is actually recorded using macro manager and when I run this from file>runscript it works fine.
what I actually want is to prompt "runscript" from this .bat file in already open abaqus application. This .bat file is required for tracking purpose i.e. how many times the scripts are being used.
can anyone help me with this problem?
thanks in advance!