CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Mon Sep 16, 2019 5:40 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: Batch file: start script
PostPosted: Fri May 20, 2011 3:53 pm 
Offline
Frequent User
Frequent User
User avatar

Joined: Tue Jun 06, 2006 9:03 am
Posts: 409
When you create a batch file to start a script, it works best if you put it in the common folder of CoDeSys V3.
You can also use the following method:

Just create a .bat file and place the following text in this file (modify the path to your script):

Code:
rem all options: start /wait CoDeSys.exe --profile="..." --enablescripttracing --noUI --runscript="..."

pushd "C:\Program Files (x86)\3S CoDeSys\CoDeSys\Common"
start "MyScriptNameAsOption" /wait CoDeSys.exe --profile="CoDeSys V3.4 SP3 Patch 1" --enablescripttracing --runscript="C:\_d\Python\CommandLineStart\importXML.py"


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited