• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

XML file batch proccessing...

EinsteiN

Limp Gawd
Joined
May 9, 2000
Messages
358
Hi guys

I'm trying to convert the contents of some folders using windows batch:

Code:
FOR /R %%a in (XML-test-filer\*.xml) do CALL C:\FLPR\AltovaXML -xslt2 2.2mapping.xsl -in "%%a" -out "%%a_2.2.xml"

as you can see my clumsy attempt only gives the new files a slightly different name.

But I haven't been able to figure out howto change the output directory :)

Enter you guys :cool:

-E
 
Not totally sure this is the best area to be asking, perhaps the OS sections :confused:

But anyways, i wont claim to be a batch script expert, but wouldnt it use the current directory?
Just cd to the folder you want as output then run the batch file from there
 
I tried that and it doesn't work because %%a is a string like "C:\yadayada\thefilename.xml" and maybe there's where my problem lies. Since the string that contains the path + filename is absolut.

And I must reuse the filename, since that's hardcoded for use elsewhere in the program that uses the XML.

Sadly I don't know anyway to create the path and the filename seperately in batch.

But thanks for the input :)

-E

EDIT: Spelling and clearification(I hope)
 
Back
Top