Hello everyone,
Could some kind soul help me with using serz.exe from the command prompt? Serz 'help' says 'usage: serz infile /{bin,xml}:outfile'.
I've tried:
serz "c:\folder with spaces\thebinfile.bin" /xml:"c:\another folder with spaces\thexmlfile.xml"
serz "c:\folder with spaces\thebinfile.bin" /bin:"c:\another folder with spaces\thexmlfile.xml"
the above without a colon (:).
the above with a space between the colon and the outfile.
I know that this is hardly exhaustive, but I'm hoping to take a shortcut here.
What I'm hoping to do is write a little app to manipulate some of the xml files in Rail Simulator. Nothing specific, yet. I just want a little project to try out Visual Studio 2008 and .Net 3.5.
Alternatively, if anyone knows the file format of .bin files, I'd like to attempt an implementation of a Stream class in .net that can read and write .bin files.
Thanks in advance for taking the time to read/post.
Shadders.
Help with Serz.exe please...
Moderator: Moderators
Re: Help with Serz.exe please...
Try Mike Simpson's tool called RS_Tools at:
http://members.optusnet.com.au/virtualt ... loads.html
Bill Hobbs
http://members.optusnet.com.au/virtualt ... loads.html
Bill Hobbs
Re: Help with Serz.exe please...
Thank you for your reply Mr. Hobbs,
Unfortuantly your suggesion is not what I desire, though I thank you for posting.
I'd like to use Rail Simulator's .Bin files as a basis to create my own little programming project. While I'm aware that Mike Simpson has created RS Tools and that Ben Laws (SteelIXB) has created RSBinTool, I did not want to steal from their repective works.
Idealy, I'd like to know what binary format is used for xml files in RS. Or, failing that, the exact syntax of the Serz.exe program so I can call it from my (yet to exist) utility.
Thank you for taking the time to post though.
Regurds,
Shadders.
Unfortuantly your suggesion is not what I desire, though I thank you for posting.
I'd like to use Rail Simulator's .Bin files as a basis to create my own little programming project. While I'm aware that Mike Simpson has created RS Tools and that Ben Laws (SteelIXB) has created RSBinTool, I did not want to steal from their repective works.
Idealy, I'd like to know what binary format is used for xml files in RS. Or, failing that, the exact syntax of the Serz.exe program so I can call it from my (yet to exist) utility.
Thank you for taking the time to post though.
Regurds,
Shadders.
-
AdamsRadial
- Been on the forums for a while
- Posts: 257
- Joined: Mon Jun 21, 2004 1:00 pm
- Location: In LSWR country
- Contact:
Re: Help with Serz.exe please...
Edited after experiments:
Ignore my earlier instruction to ignore the colon, it's freezing here and my brain has only just warmed up.
It seems to work like this
serz "My Documents\Test\named input_file.bin" /:"My Documents\Test\filename with spaces.xml"
and
serz "My Documents\Test\named file.xml" /:"My Documents\Test\output file.bin"
I switched location to E: and then repeated the test with the full drive and path to the Test folder and got the same result.
confusingly, I first converted a bin file to an xml file but used the wrong format in the command, i.e. I suggested it create a /bin:"blah.xml", but it ignored the /bin specification and created the xml file. I think it knows what type of file it is opening and therefore knows what sort of output file it should be creating. As a result of that, I discarded the bin and xml portion of the switch and found it worked correctly.
Ignore my earlier instruction to ignore the colon, it's freezing here and my brain has only just warmed up.
It seems to work like this
serz "My Documents\Test\named input_file.bin" /:"My Documents\Test\filename with spaces.xml"
and
serz "My Documents\Test\named file.xml" /:"My Documents\Test\output file.bin"
I switched location to E: and then repeated the test with the full drive and path to the Test folder and got the same result.
confusingly, I first converted a bin file to an xml file but used the wrong format in the command, i.e. I suggested it create a /bin:"blah.xml", but it ignored the /bin specification and created the xml file. I think it knows what type of file it is opening and therefore knows what sort of output file it should be creating. As a result of that, I discarded the bin and xml portion of the switch and found it worked correctly.
"Time waits for no man - but it sometimes stops to pick up hitchhikers"
Adrian S
Adrian S
Re: Help with Serz.exe please...
Hi AdamsRadial,
Please excuse my late response, real life getting in the way again.
Thank you very much for your post, that was just what I wanted.
Cheers,
Shadders.
Please excuse my late response, real life getting in the way again.
Thank you very much for your post, that was just what I wanted.
Cheers,
Shadders.