Great Post and very useful.
One little suggestion, file TagsList.bat can be edited to fetch dynamic path of PIConfig.exe on PI Server:
I added %piserver% env. variable. Is it available on all PI Server and PI ProcessBook installs?
On a client installation you normally have: %pihome% and %pihome64% environment variables defined. On a default install this points to c:\program files (x86)\PIPC\ and c:\program files\PIPC\ respectively.
On a server installation (PI Data Archive), you get in addition to the two above: %piserver%. This corresponds to c:\program files\PI\.
If you want to use a PI Config script remotely you'll need to modify your script to connect to the remote server first.
To keep things simple you may just clarify and tell that your script is meant to work on a server.
Also, I had a quick look in the files and there is a lot of things in the .bat files that I am not sure to understand. Adding comments could help to gain confidence in what this script does before one runs it
1 of 1 people found this helpful
Thanks for sharing this, this is good content .
I'd recommend you add a license in your GitHub repository folder as well as in your readme.
Content with no license means it is your own personal intellectual property, no one can use it without your consent.
This is pretty much why open sources licenses exists.
I'd recommend that you add the Apache 2.0 License to your work. You may check here for an example:
- Add the apache license file to your repository ( github has a feature to do this when you add a new file and you name it license I believe)
- Replace the placeholders in the file per your name and the year
- Add a paragraph in your readme.md, and place the text to apply the license.
- Add the same text as comments, in your code files headers. ( bat files comment --> :: vbs comment --> '
Let me know if you have questions.
I added license information upon your suggestion
Thanks Meir.. this is good. But can you upload the latest files . I tried running this for only 4 tags and it didnt worked... looks like there is something which i am missing.
P.S : i am doing this on the server directly
Recent version can always be downloaded from here. (I removed obsolete attached files).
Can you please make sure your tags.list contain correct tags only (tag per line).
Also please share the error you experience.
this is because you are running your command under the I:\ directory most likely the tagslist.params file does not exist at this location. I would recommend that you use the full path of all the files you reference in your commands, so it should work independently of the location of the executing directory of your script.
Hope this helps,