Before posting, and to avoid disappointment, please read the following:

  • This forum is not for 2BrightSparks to provide technical support. It's primarily for users to help other users. Do not expect 2BrightSparks to answer any question posted to this forum.
  • If you find a bug in any of our software, please submit a support ticket. It does not matter if you are using our freeware, a beta version or you haven't yet purchased the software. We want to know about any and all bugs so we can fix them as soon as possible. We usually need more information and details from you to reproduce bugs and that is better done via a support ticket and not this forum.

Script To Create An XML File

For technical support visit https://support.2brightsparks.com/
Post Reply
Muppet
Newbie
Newbie
Posts: 2
Joined: Thu Mar 05, 2026 4:46 pm

Script To Create An XML File

Post by Muppet »

Pro V11
I'm new to syncback and never used Pascal.

I'm trying to write a script that will generate an xml file that lists the folder names that were moved when the profile ran.
Is this even possible?

I tried creating a basic script that generated a simple text file with some arbitary text in it just to prove I could get that to work but it didn't run.
How can i error trace it? Is there a log that would indicate if the script ran?

If I can't do the xml routine then I could write a bat file that would interogate the profile log file - is it possible to pass the logfile name to the bat file?

Thanks in advance
Muppet
Newbie
Newbie
Posts: 2
Joined: Thu Mar 05, 2026 4:46 pm

Re: Script To Create An XML File

Post by Muppet »

I've created a .bat file to run in Programs-After with LOGFILE as a parameter that writes the logfile file name to a text file.

"C:\SyncBackProLogs\scripts\bat\lastlogname.bat" "%LOGFILE%"

The bat runs and creates the file but the log file name is "%LOGFILE%"

Apparently this should work and write the logfile name to the text file.

Any suggestions as to what I'm doing wrong?
Post Reply