Home
»
Discussion Forums
»
Scripts & Agent Procedures
»
K5 - tool to convert BAT files to K script
Subscribe via RSS
Share this
Similar Posts
Executing BAT file from a Kaseya Script
by
LegacyPoster
on
Aug 7, 2008
bat script
by
LegacyPoster
on
Mar 9, 2009
Problem with BAT file
by
LightJockey
on
Jun 10, 2013
Verified Answer
.bat File Not Executing
by
h34th3r
on
Aug 13, 2015
Verified Answer
Names and dates of bat files
by
LegacyPoster
on
Aug 5, 2010
View More
Details
2
Replies
0
Subscribers
Posted
over 7 years ago
Scripts & Agent Procedures
K5 - tool to convert BAT files to K script
Posted by
LegacyPoster
on
Jun 23, 2010 8:53 PM
ConverttoKscript.txt
Hi,
Here is a little batch file I wrote to convert a batch file to a Kaseya 5 script.
This way, you can work out all the little nigglies for a script in batch form, and when things are good to go, you can import to Kaseya.
NOTE: I have only written and tested this script. I have not yet used it for creating a script so can't tell you it's success rate
Usage: converttokscript batchfile.bat
Legacy Forum Name: K5 - tool to convert BAT files to K script,
Legacy Posted By Username: chris@busy.co.nz
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
LegacyPoster
on
Jun 25, 2010 1:34 AM
Cool idea. Thank you.
Legacy Forum Name: Scripts Forum,
Legacy Posted By Username: SMason
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
LegacyPoster
on
Jun 28, 2010 1:49 PM
Chris,
This is going to fail in all sorts of horrible ways unfortunately.
The reason is that each Execute Shell Command has a separate environment context, whereas a batch file has a single environment context.
That is, if you define a variable on line one of the batch file, you won't be able to use it on line 3, once you convert the script.
Andrew
Legacy Forum Name: Scripts Forum,
Legacy Posted By Username: andrew.doull@computer-care.com.au
You have posted to a forum that requires a moderator to approve posts before they are publicly available.