- Difference in running a Bat file from within UP1.9 and from Command Prompt
Re: Difference in running a Bat file from within UP1.9 and from Command Prompt
toggle quoted messageShow quoted text
Ok, this is still weird.
I have tried both Luuk's and Heidi's suggestions and it does the same thing.
I have the program creating a 'cmd' file that is then passed as a parameter into my .bat file. I watch the execution of the bat file on the screen and it has everything exactly as it should be. But, from UP it replaces the pdf file.
If I run it from a command prompt like this, "scanfile.bat scansettings.cmd" it runs just fine and appends to the pdf file.
On Sat, Jan 13, 2018 at 11:42 AM, Heidi Schuppenhauer <heidis13@...>
What has worked well for me is to use blobs. That way I don't have to call another task
and it's a lot easier to put the bat file together. The form editor in Magic isn't the
easiest thing to use either.
1. Create an Ansi blob variable. Set the style to "edit" so you can display it if you want.
2. Update the variable with your bat text. You can just copy and paste the
text into the expression editor, and put quotes around it.
3. Do a Blb2File to store the blob somewhere.
4. Do a Delay if needed.
5. Then execute it.
I think it might be even more fun to do it in a .Net snippet. The editor in .Net
lends itself to typing out command text.
Join email@example.com to automatically receive all group messages.