Execute and Wait can not be edited

Questions about Cobian Reflector
Todd
Posts: 199
Joined: 01 Nov 2021, 23:30

Re: Execute and Wait can not be edited

Post by Todd »

cobian wrote: 29 Feb 2024, 13:25 if (!String.IsNullOrEmpty(theEvent.Parameter2))
process.StartInfo.Arguments = theEvent.Parameter2; <-- the whole quoted set of parameteres assigned here
What do those two lines look like in Cobian Backup?

The "if not the string is null or empty for the event 's second parameter" may be the problem. Perhaps for some odd reason, it thinks "theEvent.Parameter2" is null or empty or maybe even it is randomly picking the wrong parameter or the wrong pre-event, perhaps one that does not exist.

Can you add a proofing statement to see what '"theEvent.Parameter2" actually is? Maybe slip it into the log or spin test version for me to test?
User avatar
cobian
Site Admin
Posts: 5047
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Execute and Wait can not be edited

Post by cobian »

This should work. Tested.

C:\Rakudo\bin\raku.exe """C:\NtUtil\CobianWrapper.pl6"" ""--rotates 4"" ""--backup_path"" ""[BACKUP]\MyDocsBackup\backup1"""

MS documentation for Process.Run says: Quotes in ProcessStartInfo.Arguments must be escaped as three quotes ("""). This is because a single quote is used for passing a string containing spaces as a single argument.
--
Luis Cobian
Cobian Backup's creator
Todd
Posts: 199
Joined: 01 Nov 2021, 23:30

Re: Execute and Wait can not be edited

Post by Todd »

Just so there is no misunderstanding, the

parameters are successfully gettin got my program. I just can not edit the even line.
cobian wrote: 01 Mar 2024, 21:30 C:\Rakudo\bin\raku.exe """C:\NtUtil\CobianWrapper.pl6"" ""--rotates 4"" ""--backup_path"" ""[BACKUP]\MyDocsBackup\backup1"""
No symptom change:
Screenshot_2024-03-01_21-49-28.png
Screenshot_2024-03-01_21-49-28.png (34.44 KiB) Viewed 4514 times

And with all the quotes:
k:\Windows\NtUtil\RunLineTest.bat """C:\NtUtil\CobianWrapper.pl6"" ""--rotates 4"" ""--backup_path"" ""[BACKUP]\MyDocsBackup\backup1"""
Everything gets jammed into the first parameter, which goofs up my stuff pretty badly:
"0 = <"K:\Windows\NtUtil\RunLineTest.bat">"
"1 = <"""C:\NtUtil\CobianWrapper.pl6"" ""--rotates 4"" ""--backup_path"" ""[BACKUP]\MyDocsBackup\backup1""">"
"2 = <>"
"3 = <>"
"4 = <>"
"5 = <>"
"6 = <>"
"7 = <>"
"8 = <>"
Press any key to continue . . .
Can you add a proofing statement to see what '"theEvent.Parameter2" actually is? Maybe slip it into the log or spin test version for me to test?
Ushavilash
Posts: 10
Joined: 22 Feb 2024, 12:41

Re: Execute and Wait can not be edited

Post by Ushavilash »

Todd wrote: 05 Feb 2024, 23:46 Fixed for the next version
Yippee!!!! Thank you!
[/quote]

Working great in 2.6. Thankyouthankyouthankyouthankyou!!!
[/quote]

Sorry but what about this, this didn't worked.
Todd
Posts: 199
Joined: 01 Nov 2021, 23:30

Re: Execute and Wait can not be edited

Post by Todd »

Ushavilash wrote: 06 Mar 2024, 11:59
Todd wrote: 05 Feb 2024, 23:46 Fixed for the next version
Yippee!!!! Thank you!
Working great in 2.6. Thankyouthankyouthankyouthankyou!!!
Sorry but what about this, this didn't worked.
Hi Ushavilash,

This is what is known as an "intermittent". It is the worst, most irritating bug for a programmer to isolate and correct. That being said, Cobian is a genius programmer and he will eventually fix it. He might not have an hair left and might have picked up a few new "Colourful" words in the process, but he will eventually fix it.

-T
Todd
Posts: 199
Joined: 01 Nov 2021, 23:30

Re: Execute and Wait can not be edited

Post by Todd »

CobianReflector-2.7.10.exe?
Todd
Posts: 199
Joined: 01 Nov 2021, 23:30

Re: Execute and Wait can not be edited

Post by Todd »

Still ot fixed in 2.7.20.

Man this bug is totally a nuisance!
Todd
Posts: 199
Joined: 01 Nov 2021, 23:30

Re: Execute and Wait can not be edited

Post by Todd »

Luis,

This is driving me nuts!

What file do I directly edit (text or hex) to get at this run line?

-Todd
Post Reply