Date
1 - 5 of 5
Invoke OS Cmd Wait
Shawn Stone
I am using UP 1.9 trying to use the Invoke OS cmd with Wait set to Yes.
The Wait switch doesn't seem to work. The process continues without waiting for the OS command to finish. The OS cmd is a call to a web site, this works, but the Magic sub task continues on. Any thoughts? What am I missing?
|
|
De Netwerkadviseur BV
Hi Shawn,
The wait switch will work on executables. A hyperlink will be activated and once active the Wait is ended. You can test with a small test.bat: @echo off
start chrome http://www.denetwerkadviseur.nl
pause
exit Do an exit to test.bat. With pause line it waits, without this line not. Kind regards, André
|
|
Shawn Stone
That worked, except now it is asking the user to press any key to continue ....
Is there a way to prevent that?
|
|
sherman levine
Shawn,
What is the actual web command you're
using?
If it's Start and a URL, then try
changing it to your browser's command line
path\iexplore.exe etc or something
similar.
The OS start command immediately exits
after launching its payload, and I think that's why your OS
command returns immediately to Magic.
Sherm
On 5/16/2022 1:03 PM, Shawn Stone
wrote:
That worked, except now it is asking the user to press any key to continue ....
|
|
Shawn Stone
It's not start, it's this with added credentials and patient information. The neat thing is whatever the default browser is, it uses that.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <html> <body onLoad="document.forms[0].submit()"> <head> <title>XML Message to Newcrop</title> </head> <body> <p> <strong>Transmitting Data to NewCrop LLC. Please Wait a moment</strong></p><form name="info" method="post" action="https://preproduction.newcropaccounts.com/UX2/interfacev7/RxEntry"><textarea type="hidden" style="display:none;" id="RxInput" name="RxInput"><?xml version="1.0" encoding="utf-8" ?> <NCScript xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://secure.newcropaccounts.com/interfaceV7">
|
|