So im trying to write a script that takes this: Symbolic constant Current value Properties
------------------------------- -------------------- ---------------------------
SX -1.500000e+00 TYPE: Real Number
SOURCE: Relation
ACCESS: Locked
DESIGNATED: NO
DESCRIPTION:SY 0.000000e+00 TYPE: Real Number
SOURCE: Relation
ACCESS: Locked
DESIGNATED: NO
DESCRIPTION:SZ 1.350000e+00 TYPE: Real Number
SOURCE: Relation
ACCESS: Locked
DESIGNATED: NO
DESCRIPTION:SC 0.000000e+00 TYPE: Real Number
SOURCE: Relation
ACCESS: Locked
DESIGNATED: NO
DESCRIPTION:EX -1.500000e+00 TYPE: Real Number
SOURCE: Relation
ACCESS: Locked
DESIGNATED: NO
DESCRIPTION:EY 0.000000e+00 TYPE: Real Number
SOURCE: Relation
ACCESS: Locked
DESIGNATED: NO
DESCRIPTION:EZ -3.869300e-01 TYPE: Real Number
SOURCE: Relation
ACCESS: Locked
DESIGNATED: NO
DESCRIPTION:EC 0.000000e+00 TYPE: Real Number
SOURCE: Relation
ACCESS: Locked
DESIGNATED: NO
DESCRIPTION:and makes it into this:
SX0.0000SY0.0000SZ1.1250SC0.0000EZ-0.0025EX0.0000EY0.0000EC0.0000
I have a lengthy script that does the job now but im sure there is an easier way to do it.The script that I have now is step by step seeing if the number is positive or negative then taking out just the numbers factoring out the exponents and is about 350 lines of code just to get that one line.
I would really like to have it done in batch because its what I know right now and this project is under a time constraint. I am currently learning C++ and am planing on re writing it when i get the hang of C++I keep thinking that there has to be an easier way.
Thanks for any helpNOTE: there are a bunch of spaces between the sx and the actual number about 30 characters
| « Batch file help to backup... | run file as if it were a ... » |