Execute and Wait can not be edited
Re: Execute and Wait can not be edited
.NET initializes the variables automatically. My uneducated guess is that the existing parameter is malformed.
--
Luis Cobian
Cobian Backup's creator
Luis Cobian
Cobian Backup's creator
Re: Execute and Wait can not be edited
No symptom change in 2.6.55
The parameters are copies and pasted. This is what the command looks like. Maybe try it at your end?
Code: Select all
C:\Rakudo\bin\raku.exe C:\NtUtil\CobianWrapper.pl6 --rotates 4 --backup_path [BACKUP]\MyDocsBackup\backup1
Not that it has anything to do with this issue, but you are welcome to my code for CobianWrapper.pl6.
Re: Execute and Wait can not be edited
Hmm, have you tried with
C:\Rakudo\bin\raku.exe C:\NtUtil\CobianWrapper.pl6 "--rotates 4 --backup_path [BACKUP]\MyDocsBackup\backup1"
?
C:\Rakudo\bin\raku.exe C:\NtUtil\CobianWrapper.pl6 "--rotates 4 --backup_path [BACKUP]\MyDocsBackup\backup1"
?
--
Luis Cobian
Cobian Backup's creator
Luis Cobian
Cobian Backup's creator
Re: Execute and Wait can not be edited
That would pile everything into the first parameter. The parameters do not have to be in order either. There are four parameters total. --help and --debug just default if you leave them off.
Do you try creating an execute and wait with my run line and then try editing it?
Re: Execute and Wait can not be edited
Aha...s sorry. It should be:
C:\Rakudo\bin\raku.exe "C:\NtUtil\CobianWrapper.pl6 --rotates 4 --backup_path [BACKUP]\MyDocsBackup\backup1"
Only one parameter is transmitted.
C:\Rakudo\bin\raku.exe "C:\NtUtil\CobianWrapper.pl6 --rotates 4 --backup_path [BACKUP]\MyDocsBackup\backup1"
Only one parameter is transmitted.
--
Luis Cobian
Cobian Backup's creator
Luis Cobian
Cobian Backup's creator
Re: Execute and Wait can not be edited
k:\Windows\NtUtil\RunLineTest.bat
Without quotes:
k:\Windows\NtUtil\RunLineTest.bat C:\NtUtil\CobianWrapper.pl6 --rotates 4 --backup_path [BACKUP]\MyDocsBackup\backup1
With the quotes:
k:\Windows\NtUtil\RunLineTest.bat "C:\NtUtil\CobianWrapper.pl6 --rotates 4 --backup_path [BACKUP]\MyDocsBackup\backup1"
Quoting is going to mess this up a lot.
Code: Select all
@echo off
echo "0 = <%0>"
echo "1 = <%1>"
echo "2 = <%2>"
echo "3 = <%3>"
echo "4 = <%4>"
echo "5 = <%5>"
echo "6 = <%6>"
echo "7 = <%7>"
echo "8 = <%8>"
Pause
k:\Windows\NtUtil\RunLineTest.bat C:\NtUtil\CobianWrapper.pl6 --rotates 4 --backup_path [BACKUP]\MyDocsBackup\backup1
Code: Select all
"0 = <"K:\Windows\NtUtil\RunLineTest.bat">"
"1 = <C:\NtUtil\CobianWrapper.pl6>"
"2 = <--rotates>"
"3 = <4>"
"4 = <--backup_path>"
"5 = <[BACKUP]\MyDocsBackup\backup1>"
"6 = <>"
"7 = <>"
"8 = <>"
Press any key to continue . . .
k:\Windows\NtUtil\RunLineTest.bat "C:\NtUtil\CobianWrapper.pl6 --rotates 4 --backup_path [BACKUP]\MyDocsBackup\backup1"
Code: Select all
"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 . . .
Re: Execute and Wait can not be edited
Yes, the last one should be the way to go.
using (Process process = new Process())
{
process.StartInfo.FileName = theEvent.Parameter1;
process.StartInfo.UseShellExecute = false;
if (!String.IsNullOrEmpty(theEvent.Parameter2))
process.StartInfo.Arguments = theEvent.Parameter2; <-- the whole quoted set of parameteres assigned here
try
{
process.Start();
...
etc
using (Process process = new Process())
{
process.StartInfo.FileName = theEvent.Parameter1;
process.StartInfo.UseShellExecute = false;
if (!String.IsNullOrEmpty(theEvent.Parameter2))
process.StartInfo.Arguments = theEvent.Parameter2; <-- the whole quoted set of parameteres assigned here
try
{
process.Start();
...
etc
--
Luis Cobian
Cobian Backup's creator
Luis Cobian
Cobian Backup's creator