FSX please help me with bgl2xml and thanks

#1
hi, jon
i have a problem while using the bgl2xml command line. though i have correctly inputted the command like "C:\C\Bgl2Xml.exe /s "C:\C\ZGCJ_ADEX_ADE.BGL" /d "C:\" /m f"
(in this command , i put bgl2xml.exe and the bgl file at folder "C:\C\")
but there's an error message read "Could not find the file “C:\Users\TeCHiScy\true”。" i guess if there's some errors in the arg processing procedure?
can you help me check it and i'm always wait for your reply, thanks
 
#3
yes, it works well. but i need to covert a lot of bgl files, so it's necessery for me to solve the problem of using bgl2xml command line.

and
i'm using windows 7 ult.
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
#5
I have not looked at the command line version for a while and I seem to recall that the GUI uses the command line version. I need to check it out. I will try and do it as soon as possible
 
#6
Hi Jon,

Did you ever look into this or resolve the issue TechiScy was experiencing? It's just that I'm having that exact same issue with the command line version.

e.g.

C:\>"C:\Program Files (x86)\bgl2xml\Bgl2Xml.exe" /s "c:\temp\APX47130.bgl"
Could not find file 'C:\true'.

I've tried various different combinations of various command line switches, changing the current directory to the same as the bgl2xml exe and the result is always 'Could not find file 'current_dir\true' (where current_dir is the current directory from where the command is executed).

GUI version works like a dream.

I'm running Windows 7 Home Premium 64 bit SP1. FSX SDK has SP1a applied.

Any help would be greatly appreciated!
Thanks
 
#11
I hope the good Dr. Duck won't mind a comment here?

The command line version works as it should, if you handle the files properly.

First, I would remove the program from the \Program Files directories and reinstall some place that Windows is not keeping a watchful eye over.

Second, copy (not move) the BGL files into the same directory that holds BGL2XML.

Third, depending upon how many files there are, make a text file containing the command; Bgl2XML.exe /s APX00130.bgl Make sure there is a CRLF at the end of each line, better said as press the Enter key at the end of each line. How many files to decompile can determine how the lines are generated. Writing a program would work, but also using a directory printing utility to get a listing does too. That listing of files can be edited in something like Notepad++ using a macro to place the BGL2XML.exe /s at the front of each line.

Fourth, save the text file with a .BAT extension. Open a Command Window where the batch file is saved and type it's name at the DOS prompt.

Worked fine for me when decompiling 1500+ APX airport files! :D
 
#14
Hello:

Rhumbaflappy previously posted a simple example of using a DOS / CMD mode batch file to process multiple files in a folder at: :teacher:

http://www.fsdeveloper.com/forum/showthread.php?t=246615&highlight=loop+gdal

http://www.fsdeveloper.com/forum/showpost.php?p=425261&postcount=5


Some ideas for extending use of the "FOR - IN - DO" function in batch files:

http://www.google.com/#hl=en&tbo=d&...e1e8aba301a857&bpcl=38093640&biw=1172&bih=758


...And a fun interactive demo using "FOR" loops (pick: "NT DOS Session" for Windows CMD mode equivalent to DOS): :p

(Surprisingly, it even works on my mobile phone's "Opera Mini" web browser; I guess I'm easily amused at this hour of the evening !).

http://www.robvanderwoude.com/forinteractive.php




Hope this helps ! :)

GaryGB
 
Last edited:
Top