After FinalBuilder upgrade from 8.0.0.1029 to 8.0.0.1520 it adds lots of additional slashes ("") on Save. It cause problems if you have a dos command as FinalBuilder target like
"del /f/s/q %FBPROJECTDIR%\MyFolder > nul"
after Save such target in FinalBuilder 8.0.0.1520 you’ll have
"del /f/s/q %FBPROJECTDIR%\MyFolder > nul"
Can you see the difference?
First command deletes “MyFolder” only, but second deletes “MyFolder” and “” which recursively DELETE ALL FILES FROM ROOT DISK!
Please fix it ASAP.
Thanks
The extra \ are only in the project file to escape certain symbols, they are unescaped when the project is loaded. Are you seeing
“del /f/s/q %FBPROJECTDIR%\MyFolder > nul”
in the action when the project is loaded? If so, please send us your project file so we can see what is going on.
FinalBuidler project files are not allowed for attachments, so full content of them below (v1029 - where it’s ok and v1520 - corrupted).
================================================
repro_v1029.fbp8
================================================
project
begin
projectid = {E6A074B4-C878-43DD-93BE-1C8FE2F9D00A}
target
begin
name = Default
targetid = {B611A68F-A5CA-4B30-BD34-96E63CAD32CB}
rootaction
begin
action.doscmd.execute
begin
captureoutput = true
command = “del /f/s/q %FBPROJECTDIR%\MyFolder > nul”
description = “Delete folder”
enablelivecapture = true
enablereturncodecheck = true
enabletimeout = false
expandimpersonationtoken = false
hidewindow = true
id = {EFDC1BCE-B1AC-44C8-8835-E53D7A3D090F}
impersonateusenetcredonly = false
impersonateuser = false
logoutput = true
logprocessparameters = true
params = “del /f/s/q %FBPROJECTDIR%\MyFolder > nul”
processoraffinity = 0
processpriority = tpNormal
redirectstderr = true
returncodecomparator = rcEqualTo
returncodetocheck = 0
terminateontimeout = false
timeoutlength = 1
useerrordialogmonitor = false
waitforcompletion = true
end
end
end
end
================================================
================================================
repro_v1520.fbp8
================================================
project
begin
projectid = {E6A074B4-C878-43DD-93BE-1C8FE2F9D00A}
target
begin
name = Default
targetid = {B611A68F-A5CA-4B30-BD34-96E63CAD32CB}
rootaction
begin
action.doscmd.execute
begin
captureoutput = true
command = “del /f/s/q %FBPROJECTDIR%\MyFolder > nul”
description = “Delete folder”
enablelivecapture = true
enablereturncodecheck = true
enabletimeout = false
expandimpersonationtoken = false
hidewindow = true
id = {EFDC1BCE-B1AC-44C8-8835-E53D7A3D090F}
impersonateusenetcredonly = false
impersonateuser = false
logoutput = true
logprocessparameters = true
params = “del /f/s/q %FBPROJECTDIR%\MyFolder > nul”
processoraffinity = 0
processpriority = tpNormal
redirectstderr = true
returncodecomparator = rcEqualTo
returncodetocheck = 0
terminateontimeout = false
timeoutlength = 1
useerrordialogmonitor = false
waitforcompletion = true
end
end
end
end
================================================
Please send the projects to support@finalbuilder.com - what does it look like when loaded in the IDE? The change in the project file looks fine to me, we had to escape certain characters when saving, but they are unescaped when loading.
After saving project in v1520 command looks fine in v1520 only, in previous FinalBuilder versions like v1029 that project have extra slashes visible in UI as well.
Just to be clear, repro steps:
1. create FB command on PC with v1029
2. modify FB project (click Save) on another PC with v1520
3. build FB on another PC with v1029 => all files are gone