Page 1 of 1
Serz.exe in VB.net
Posted: Fri Jan 27, 2012 1:20 pm
by 67016
Im currently writing a program in VB.net to alow people to easily add lights to locos in RW. I want to make it so that the user can open a .bin file however i cant seem to get serz.exe to convert from . bin to .xml Is there a certain way that i have to do it? This is the code im using
Code: Select all
Process.Start("serz.exe", filename)
Re: Serz.exe in VB.net
Posted: Fri Jan 27, 2012 3:15 pm
by shanyiqua
Hi!
in java i use this:
Runtime.getRuntime().exec(SERZCMD+origFilePath).waitFor();
and SERZCMD is a constant which contains this string "serz.exe "
origFilePath is an absolute path to the bin.
(and of yourse waitFor() method makes my program to wait for serz to finish it's work.
Re: Serz.exe in VB.net
Posted: Fri Jan 27, 2012 6:38 pm
by Reppo
You can create a .bat file with the lines command to execute the serz function, then you can execute this bat file from your VB program with shell function.
I did it and it works perfectly.
Sorry for my english.
Regards.
Ricardo.
Re: Serz.exe in VB.net
Posted: Fri Jan 27, 2012 8:25 pm
by 67016
Thanks, I solved the problem, its just down to windows not letting me edit files in the RW directory.
Re: Serz.exe in VB.net
Posted: Fri Jan 27, 2012 10:36 pm
by mikesimpson
67016 wrote:Thanks, I solved the problem, its just down to windows not letting me edit files in the RW directory.
Hi Kris,
I think you will find that the majority of users have their Steam directory in c:\Program Files (x86)\ so unless you tell them that they must run the utility as administrator, they will complain about your utility not working.
Mike