Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

Automating PICONFIG Question

$
0
0

Hello,

 

What I'm trying to do is automate the backfill process using piconfig, but I'm running into a few issues.

 

Here's a little bit of what I'm doing:

 


 

backfill.StartInfo.FileName = "C:\Program Files\PI\adm\piconfig.exe"

 

You can tell what I'm doing here.

 

A thought would be to pass a few arguments like so:

 


backfill.StartInfo.Arguments = "< C:\backfillscriptdirectory\backfillscript.txt"

 

The problems that I'm running into is that piconfig will kick into command mode, in which case it's expecting something like "INPU" and giving it the path to the script etc.

 

At the end of the day I'm wanting to be able to toss a few of the backfill scripts into a folder and let it go to town looping through the array of files and running them.

 

Another way that I have found is using streamwriter and opening up just a simple cmd and streaming commands that way, but that seems very inefficient as well.

 

Anyone have any ideas?
 


Viewing all articles
Browse latest Browse all 1120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>