Date
1 - 4 of 4
Changing a field prior to running a batch file, then changing it back
buster reinke
That's far too hard for me Keith. It just seemed easier for me to copy the entire sqlite file with this one field changed. What I have done works, so I'm happy with that. I know I do a lot of things differently because of my lack of knowledge on easier ways to do it. Thanks anyway, Buster
On Monday, 10 October 2022 at 11:21:39 am AEST, Keith Canniff <kcanniff@...> wrote:
Buster,
Why not just pass in the new company name into the batch task that writes the training system data rather than changing the data that's used and then changing it back?
Keith
From: main@magicu-l.groups.io <main@magicu-l.groups.io> on behalf of buster reinke via groups.io <buster_png@...>
Sent: Sunday, October 9, 2022 8:15:40 PM To: main@magicu-l.groups.io <main@magicu-l.groups.io> Subject: Re: [magicu-l] Changing a field prior to running a batch file, then changing it back Hi everyone, sorry, cancel this. It has been working as it should, I just didn't test it in the run time.
In Studio, it was looking at the same sqlite file when I opened it by using F7.
Regards,
Buster
On Monday, 10 October 2022 at 09:21:55 am AEST, buster reinke via groups.io <buster_png@...> wrote:
Hi all, I have created a small batch file that updates a training system, but I need the training system to have a different company name in one of the data screens. So I updated a virtual in the record prefix in order to
save the original company name, and then I ran a batch file to change this name to "Training System". I then ran the batch file to copy the sqlite data file to the training system and copy over it. This all worked perfectly, the training system was identical
to the main system with the exception of the company name, which is what I need, so I then tried to add an extra bit in the Task Suffix to change the Company Name in the main file back to what it was. However, when I did that, the batch file still updates
the Training System, but it is using the real company name, and not Training System. So I tried calling another program in the task suffix to change the company name back, hoping that it would happen after the Update Training System batch file ran, but it
is still using the real company name in the batch file.
Can anyone help me get this to run correctly in the following order: 1. Change Company Name to Training System. 2. Run Batch Task to update Training System. 3. Change Company Name back to Original. Thanks, Regards, Buster |
|
Buster,
Why not just pass in the new company name into the batch task that writes the training system data rather than changing the data that's used and then changing it back?
Keith
From: main@magicu-l.groups.io <main@magicu-l.groups.io> on behalf of buster reinke via groups.io <buster_png@...>
Sent: Sunday, October 9, 2022 8:15:40 PM To: main@magicu-l.groups.io <main@magicu-l.groups.io> Subject: Re: [magicu-l] Changing a field prior to running a batch file, then changing it back Hi everyone, sorry, cancel this. It has been working as it should, I just didn't test it in the run time.
In Studio, it was looking at the same sqlite file when I opened it by using F7.
Regards,
Buster
On Monday, 10 October 2022 at 09:21:55 am AEST, buster reinke via groups.io <buster_png@...> wrote:
Hi all, I have created a small batch file that updates a training system, but I need the training system to have a different company name in one of the data screens. So I updated a virtual in the record prefix in order to
save the original company name, and then I ran a batch file to change this name to "Training System". I then ran the batch file to copy the sqlite data file to the training system and copy over it. This all worked perfectly, the training system was identical
to the main system with the exception of the company name, which is what I need, so I then tried to add an extra bit in the Task Suffix to change the Company Name in the main file back to what it was. However, when I did that, the batch file still updates
the Training System, but it is using the real company name, and not Training System. So I tried calling another program in the task suffix to change the company name back, hoping that it would happen after the Update Training System batch file ran, but it
is still using the real company name in the batch file.
Can anyone help me get this to run correctly in the following order: 1. Change Company Name to Training System. 2. Run Batch Task to update Training System. 3. Change Company Name back to Original. Thanks, Regards, Buster |
|
buster reinke
Hi everyone, sorry, cancel this. It has been working as it should, I just didn't test it in the run time. In Studio, it was looking at the same sqlite file when I opened it by using F7. Regards, Buster
On Monday, 10 October 2022 at 09:21:55 am AEST, buster reinke via groups.io <buster_png@...> wrote:
Hi all, I have created a small batch file that updates a training system, but I need the training system to have a different company name in one of the data screens. So I updated a virtual in the record prefix in order to save the original company name, and then I ran a batch file to change this name to "Training System". I then ran the batch file to copy the sqlite data file to the training system and copy over it. This all worked perfectly, the training system was identical to the main system with the exception of the company name, which is what I need, so I then tried to add an extra bit in the Task Suffix to change the Company Name in the main file back to what it was. However, when I did that, the batch file still updates the Training System, but it is using the real company name, and not Training System. So I tried calling another program in the task suffix to change the company name back, hoping that it would happen after the Update Training System batch file ran, but it is still using the real company name in the batch file. Can anyone help me get this to run correctly in the following order: 1. Change Company Name to Training System. 2. Run Batch Task to update Training System. 3. Change Company Name back to Original. Thanks, Regards, Buster |
|
buster reinke
Hi all, I have created a small batch file that updates a training system, but I need the training system to have a different company name in one of the data screens. So I updated a virtual in the record prefix in order to save the original company name, and then I ran a batch file to change this name to "Training System". I then ran the batch file to copy the sqlite data file to the training system and copy over it. This all worked perfectly, the training system was identical to the main system with the exception of the company name, which is what I need, so I then tried to add an extra bit in the Task Suffix to change the Company Name in the main file back to what it was. However, when I did that, the batch file still updates the Training System, but it is using the real company name, and not Training System. So I tried calling another program in the task suffix to change the company name back, hoping that it would happen after the Update Training System batch file ran, but it is still using the real company name in the batch file.
Can anyone help me get this to run correctly in the following order: 1. Change Company Name to Training System. 2. Run Batch Task to update Training System. 3. Change Company Name back to Original. Thanks, Regards, Buster |
|