Run Addons from bat or exe files

Is possibility run addons from cmd use bat or exe files? I know, addons can run from SBO Addons Administration, but is some other possibility?
I use SBO 2004C v.17
regards
ks

Hi Krzysztof,
Actually sometimes I use something similar for test only purposes. Don't take it as a way for actually doing it, but as a funny thing :).
Ok, so when you connect to UI API you do something like sConnectionString = Environment.GetCommandLineArgs.GetValue(1). But when doing it in debug mode, you pass VisualStudio (assuming you're using VisualStudio) a long hardcoded connection string, otherwise B1 passes the program the real connection string. So... what happens if you pass the exe a hard-coded connection string, by using a bat or a shortcut? Trust me, it works. But with to cons: if you have more than one instance of B1 opened, you don't know in which one the add-on is going to work; and you can't stop the add-on from the add-on administration module (altought can always add a button in the add-on that says Exit). So, that's a workaround for doing it.
Hope this helps,
Ian

Similar Messages

  • How to run and pass parameters to exe file from the .txt file

    hi,
     i am facing problem with passing parameters to the .exe file which is run by labview.firstly i have  .txt script with parameters which i have to pass to .exe file. This .exe file is also a software and that script is written for it.And now i have to create  programm in labview which should fullfill following points.
      1. I have to use one knob named 'Run script'.If i pressed the knob ,it should open the Browser where i can choose .txt script file.
      2. .exe application should open(Path already chossen).
      3. after passing the parameters .exe application should closed.
      4.And labview now should update his parameter
    I can just open .exe file using Exce.vi but i dont getting any idea to do more than this.can somebody please help me?
    Solved!
    Go to Solution.

    This depends on the exe file. Does it retrieve the information as standard input or does it require the information as command line arguments?
    Depending on this, you can read the txt-file in LV (using the file functions) and pass the content to the System Exec.vi.
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • I can't access "Device Manager" "MMC" "CMD run as administrator" and some .exe files

    <p><img alt="" src="https://social.technet.microsoft.com/Forums/getfile/560661" /></p>
    <p><img alt="" src="https://social.technet.microsoft.com/Forums/getfile/560666" /></p>
    I need help! I am in hurry.

    Hi,
    Sorry for my delay.
    Based on your description, I’m a little confused with your issue. Would you please let me know more details
    of this issue? Thanks for your understanding.
    Would you please let me know OS edition information of this problematic server? Did you logon the server via
    an administrator account? Meanwhile, would you please let me know the complete error message when access Device Manager, MMC or other .exe files?
    For CMD, please open Task Manager, click File and select
    Run new task. Then type CMD and select Create this task with administrative privileges option in
    Create new task wizard. Will you still encounter issue?
    By the way, I type above links which you provided in IE. However, I can only find
    Page Not Found error. You can upload screenshots to
    OneDrive and then post link here. (Please hide all protected or private information)
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • Running workbook from .bat fails to start application missing CORE40 dll

    I have been running several workbook via windows task scheduler / vbscript &/or bat files.
    I now have a new box which I access thru Remote Desktop Connection, so I can run all these automated updates without having my screen blinking everytime a shedule workbook starts.
    If I click on the actual Discoverer icon, or the discoverer workbook shortuct, all works well.
    If I click on the .bat file, or try to run the workbook via the cmd , it gives me the following error:
    DIS4USR.EXE – Unable To Locate Component
    “this application has failed to start because CORE40.DLL was not found. Re-installing the application may fix this problem.”
    The dll is under c/orant/bin/core40.dll, which is where I've read it should be, and it works fine in my regular box...
    Please help! URGENT :)
    Thanks!

    Hello
    Check the PATH environment variables for the machine you are on and the one you are connecting to.
    You might not have Discoverer's objects in the PATH.
    Another possibility is that you have more than one piece of ORACLE software on the machine and you may need to also set the ORACLE_HOME within the BAT file.
    Best wishes
    Michael

  • Run report from forms - Cannot change file name in report node

    I am running a report (9i) from forms (9i) and I changed the name of the report in the filename field in the report node (in object navigator).
    I noticed that I get the error FRM-41214 on the RUN_REPORT_OBJECT line when I run the form, if I've changed the filename from what it originally was. e.g. It was originally rep44.rdf and I changed it to rep55.rdf, but I get this error unless I keep the rep44.rdf filename. Why? Is there somewhere else I should change this filename?

    To view the reports queue open this URL:
    http://<server>:<port>/reports/rwservlet/showjobs?server=<repserver>
    Also, try running the report stand alone, not from Forms.
    http://<server>:<port>/reports/rwservlet?server=<repserver>&report=rep55.rdf&userid=<un>/<pw>@<db>&destype=cache&desformat=PDF

  • Running exe files from java progam

    hi friends
    I just want to know how can i run a .bat or .exe file in windows from a java program...
    also i would like to know if i can check if mysql is installed in a windows computer from my java program
    Thanks
    Mustafa

    smshiraz wrote:
    thanks Jos
    now i am able to execute the .bat file.....from my java program
    Can you also please tell me how can i check from my java program how if a particular application is installed in my windows computer??The exec() call will more than likely fail if the application is not present; again, read the API documentation.
    kind regards,
    Jos

  • How do I get the Adobe Presenter trial .exe file to run? I'm getting an error requiring placement into a designated folder,

    Getting an error trying to run the Adobe Presenter trial .exe file because it is requiring that the file be placed in a designated folder with the other downloaded file. How do I solve this problem?

    Thanks, the offset command worked well. I did have to modify the script some more, there was really no reason for the first repeat loop using the offset command. Also, I had set my text item delimiters to tab for another script, and that was causing problems running this script. I think I have everything fixed now. This is the final version.
    set my_folder to choose folder
    tell application "Finder"
    set myfolderstring to name of my_folder as string
    set myfolderlist to every character of myfolderstring
    end tell
    set mycolorlist to {"A_Green", "B_Teal", "C_Purple", "D_Pink", "E_Yellow", "F_Orange", "G_Blue", "H_Black"}
    set my_break to offset of "_" in myfolderstring
    set the_code to items 1 thru (my_break - 1) of myfolderlist
    set the_code to the_code as string
    repeat with i from 1 to number of items in mycolorlist
    set the_color to item i of mycolorlist
    tell application "Finder"
    make new folder at my_folder with properties {name:the_code & "_" & the_color}
    end tell
    end repeat

  • Aggregator EXE files won't run

    Hi,
    I'm new to using Captivate and I recently created my first Captivate-based lesson. I have 5 discrete learning modules each with their own multiple-choice quiz, so I decided it would be best to make 5 different projects and then stitch them together using Aggregator. I want to publish both an APP file for Mac users and an EXE file for PC folks. The APP file I create in Aggregator runs just fine, but the EXE file won't run. There are no error messages, it just doesn't do anything when you try to run the file.
    Here is what I have tried (without success):
    Both XP and Win 7 (won't run on either)
    Installing newest version of Flash Player
    Running the EXE file as an Admin
    Oddly enough, if I publish each of the 5 projects as an EXE separately, they run just fine. My back-up plan is to make the PC users open each of the 5 modules separately, but I'd prefer to avoid this if I can.
    Am I doing something wrong in Aggregator? It seems pretty simple and the APP file works...
    Thanks for any help!
    Jess

    Hi Rod,
    That was a great idea. Unfortunately, none of the 5 Aggregator EXE files (each with one of the 5 projects missing from it) worked. I double-checked the 5 EXE files that I published individually directly from Captivate (without Aggregator) and all of them work just fine. It's looking like I need to go with plan B and just force my users to return repeatedly to the CD-ROM to open each subsequent module.
    I asked a friend to run the Aggregator-created APP file on his Mac and it wouldn't run for him even though it will run for me on my Mac. So I'm thinking I will need to publish each of the 5 projects as separate APP files as well and the Mac and PC folks will be in the same boat.
    Thanks,
    Jess

  • Two .exe files to run sequentially

    Inside a class, I am running two .exe files. But even before the first .exe gets terminated, the second .exe file is getting executed.
    Could someone please tell me how do I run these two .exe files sequentially.
    At present no error is thrown, but the necessary number of files are not created from both the .exe files.

    If I am right in understanding, is this what you meant for me to do. But still from the below code, before the execution of the first .exe, the second .exe is getting executed.
    Please tell me what updations to do in my code.
    public class Compile
         int flag=0;
         public Compile()
         void compileFile(File newFile, String renameSub, File outputfile, String fontName, String IntallPath) throws IOException
              String FirstParam = "C:\\Temp\\Installation\\test.tex";  
              String FirstParam2 = "C:\\Temp\\Installation";
              String SecondParam = "C:\\Temp\\Installation";  
              try
                   Process proc1 =Runtime.getRuntime().exec("cmd /c start /MIN tex " + FirstParam, (String[])null, new File(SecondParam));
                   InputStream stderr = proc1.getErrorStream();
                   InputStreamReader isr = new InputStreamReader(stderr);
                   BufferedReader br = new BufferedReader(isr);
                   String line = null;
                   proc1.waitFor();
                   if(proc1.exitValue()==0)
                        System.out.println("tex is executed successfully");
                        flag=1;
              catch (Throwable t)
                   t.printStackTrace();
              if(flag==1)
                   ... code for second .exe file ...
    }

  • Webserver in seperate exe file??

    Hi Guys
    So - I'm developing a piece of software that aqquires data from a USB board - this has been working well for years, everybody is happy..
    Now I want to publish the results to users via the NI web server.. Using the web publishing tool I have created a html doc from a sub VI within  the main application with the front panel I wish to publish, and that displays various values updated every 5 seconds..(the monitor function, NOT remote control).. I quickly realized that when a number of browsers are looking at the VI my main application starts to hang - have not been able to fully understand why, but I guess the NI core waits for each request to be shipped.. not really a problem since I'm not doing a VI to be published on facebook with +1.000.000 viewers - but since it potentially stalls the entire application, I risk that my measurement is disrupted, which is a no go, since the measurement may be in the field somewhere, and not next to a guy at an office desk.. Thus - I moved the call to the sub-VI into an external call using a static VI reference and the front panel open / Run methods and the "wait untill Done" flag set to false.
    This too is working very well and inside the development system I can now "sabotage" the application with multiple hits on the "refresh" button of a browser without stalling the application.. now problems arise - part because I do not have a full working knowledge of how the runtime engine operates, i guess - but... when I build this program into an exe, I can again stall the program by hitting the "refresh" button fast.... I assume that the runtime engine treats everything called from within the exe file in one thread?? 
    Questions:
    Is there a way (in a labVIEW .EXE file) to call a VI from another VI that totally separates them from each other so that if 'mainprogram' calls 'webserver', and 'webserver' hangs for some reason, this does not cause 'mainprogram' to equally hang? Could I for instance change the execution system of the VI with all 'webserver' related contant in the "execution" options?
    If not - I guess building two exe files 'mainprogram' & 'webserver' and then launch 'webserver' using system exec from 'mainprogram' will prove a solution.
    however - this means that now passing of data is no longer possible - in 2010 using lv8.6, what is the best means to move data back and forth between two seperate exe files? Ideally I would send a cluster of refnum's of the indicators from 'mainprogram' then read the values of these in 'webserver' and update the display here - but is the reference addresses from one exe, anything worth in the other exe (two seperate address spaces etc)?
    Should I learn to use datasockets - or would a TCP approach be the best? We are not talking massive amounts of data - in the area of 15 value and string controls + 2 graphs with less than 1000 points. Remember that this should only be done locally between two exe files on the same computer, to I would prefer to keep this as simple as possible - something like a pipe used in Unix code. 
    Last but not least - is there a way to run 'webserver' as some sort of service, so that the user will avoid having a window open he does not need, or a minimized 'webserver' window in the taskbar?
    many questions - and yes I know that I can read all about datasockets and TCP in the forum halls - and I'm doing it, but I would prefer to not waste too many days brushing up on new stuff not needed because my plan is wack from the start..
    Thank you for your help. 

    this is my question regarding the .exe files.
    what if i whant to make my project available for every one, not only for those that already have jre instaled, and someone that doesn't know or doesn't want to install jre want's to benefit from it????
    what do u have to answer to that??
    a serious answer please..!!

  • Can you make an exe file for a slide show using PS Elements?

    Although I use ProShow Gold for slide shows, I need information on other programs that can provide an option for an exe format. I am not too technical so I can't tell from my Elements and couldn't find anything here. I will be running a competition in which exe files are needed so they can be played on any computer. I would appreciate any suggestions. Thanks.

    judyb429 wrote:
    I will be running a competition in which exe files are needed so they can be played on any computer. I would appreciate any suggestions.
    I hope your competition goes well. I suggest though that you thoroughly scan each submitted file for virus and malware on an isolated machine first. While not suggesting your competitors would deliberately infect their entry but if their own machines were unknowingly infected by (say) a trojan that could potentially infect the executables they create for your competition.
    If it was me I'd request files in a standard format (e.g. WMV) that is readable by just about any media playing software such as Windows Media Player.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • Generating exe file for fdk script : getting error

    we trying to convert FM file to PDF using FDK asynchrouns script. we are getting below error while running attched script to crete exe file .
    Error "the application has faield to start because icuu32.dll was not found . re- installing the application may fix this problem"
    Script :
    #define DONT_REDEFINE // Console app needs native types
    #define WBUFLEN 512
    #include "fdetypes.h"
    #include "futils.h"
    #include "fapi.h"
    #include "fstrings.h"
    #include <windows.h>
    #include <ddeml.h> //not required
    #include <stdarg.h> //not required
    int main(int argc, char **argv)
    StringT opt_progid;
    CLSID pclsid;
    LPOLESTR progStr;
    HRESULT res;
    F_ObjHandleT docId;
    // Get the process name.
    if(argc == 2)
    opt_progid = F_StrCopyString((StringT)argv[1]);
    else {
    fprintf(stderr, "You must provide a process name.");
    return(1);
    // Convert the process name into a GUID
    progStr = (OLECHAR*)malloc( WBUFLEN*sizeof(wchar_t) );
    if(0 == MultiByteToWideChar(CP_ACP, 0,
    (char *)opt_progid, -1,
      progStr, WBUFLEN )) {
    fprintf(stderr, "failed to allocate\n");
    return(1);
    if (progStr[0] == '{') // hex-codes within brackets
    res = CLSIDFromString(progStr, &pclsid);
    else
    res = CLSIDFromProgID(progStr, &pclsid);
    if(res == S_OK)
    F_ApiWinConnectSession(NULL, NULL, &pclsid);
    if (!F_ApiAlive()) {
    fprintf(stderr, "No connection: %s\n", opt_progid);
    return 1;
    // Print the name of the current document.
    docId = F_ApiGetId(0, FV_SessionId, FP_ActiveDoc);
    if (docId) {
    StringT docname = F_ApiGetString(FO_Session, docId,
                                                       FP_Name);
    fprintf(stderr, "Current document: %s\n", docname);
    F_ApiDeallocateString(&docname);
    } else
    fprintf(stderr, "No active document\n");
    return 0;
    we have got below steps from one of adobe person :
    Steps. 
    can you please explaine clearly The above steps  and how can we generate PDF for a FM file without manual intervention .
    the actual requirement is :
    1) Goto installed location of FM and launch framemaker with specified process id.
    eg : $Installdir\FrameMaker.exe /progid:MyProcess
    2) Build the asynchronous client exe\dll with the help from attached sample client.
    3) Goto the location where client exe is copied and then run with specified FM process id.
    eg : asynch_script.exe MyProcess
    To resolve few dependencies, you can also copy the client exe to installed location of FM. So the above step in that case would be
    $Installdir\ asynch_script.exe MyProcess
    Hi All , We are going for upgrade of  Frame maker 8 which is on unix system  to FM 10 or 11. We are using Framemaker mainly for renditions, i.e to convert the fm documents to PDF. To convert fm document to PDF we are using the below mentioned command line utility available in FM 8.(on unix). /opt/app/frame8.0/bin/fmprint -i -p Sample.fm.fmtpl Sample.fm Currently the the fm file which need to converted to PDF and the FM 8(installed) are available on the same unix system ,so we were able to initiate/use the command line utility of FM 8. The rendition of the FM to PDF is On -Demand.( We are not running any batch activities/ bulk renditions).We are rendering the document as soon as the document  is available. As we upgrade the FM to newer versions which would be installed on the Windows machine as Frame maker 10 or 11 will not support unix plat form, so can you please let us know which option is better to use i.e we want to convert fm file to PDF using java program without any manual intevention . we came to know that about FDK and extend scripts but we are very new to those !! could you please any one can provide us ways and provide us sample codes/scripts to convert FM file to PDF !! and please let us know which one is better client / server version to do this .
    please heklp us as it is very important

    Ramesh
    I am not clear which platform that you are asking this question for. Here is an answer for Windows.
    The icuuc32.dll is one of several unicode support libraries. These files are usually included in same directory as FrameMaker.exe (e.g. c:\Program Files\Adobe\FrameMaker11).
    If your asynchronous client is located in any other directory than this directory, icuuc32.dll will not be found when your asynchronous client starts. You need to set your Windows environment "Path" variable to include it's location (e.g. c:\Program Files\Adobe\FrameMaker 11). The "Path" will be searched when your asynchronous client starts and these files should then be found.
    with Windows Vista (I think Windows 7 in the same) the "Path" is set in Control Panel | System | Advanced System Settings | Environment Variables. I would suggest adding C:\Program Files\FrameMaker11 to the "Path" in the system variables.
    There will be several files in this directory that your asynchronous client needs to start.
    Hope this helps

  • Calling subvis dynamicall​y from within an exe (avoiding error 1003)

    Hi,
    I'm using an architecture where the main program (compiled to an exe) can be supplied with user-"plugins" that are collections of vis of specific types inside a specially named folder relative to the exe. They can be called from within the exe via "open vi reference" supplied by the corresponding strict vi types and the corresponding relative paths.
    I want to avoid having to include any of the plugins in any way in the application builder, since users should be able to create own plugins that the application is totally unaware of during build.
    In principle this approach works quite well, since these plugins are not extremely complex, but occasionally I get an error 1003 when loading a plugin.
    I've read many old posts about this error in this particular situation, mostly using LV versions 7 or 8 (I'm using 2012). One suggestion was to build a source distribution for every plugin, including everything that is used from vi.lib, instr.lib, and user.lib. This indeed helped in my particular case - however, it bloats the plugin "distribution" (which consists originally only of a couple of user vis) extremely and makes user-side developement more complicated.
    Now some plugins run nicely from within the exe without having to build a source distribution for them (they still use many vi.lib vis) while others don't and I have no clue why...
    These plugins are wrappers for hardware drivers which allow controlling any hardware instrument from within the main application through a certain API. So, in a particular case, a plugin which produced error 1003 is using VISA serial functions (all inside ...\vi.lib\Instr\_visa.llb) and one without error doesn't (yet it uses many functions from ...\vi.lib\Utility\...).
    I can fix the VISA-problem in a simple way by including (only) the used VISA-vis (and typedefs) inside the plugin's folder and explicitely link to them (i.e. replace the VISA-vis from vi.lib with the copied ones in the plugin's folder - I guess this is also what the source distribution does).
    However, I'm confused why some plugins with linked vi.lib vis work while others produce an error 1003 unless those particular vis are explicitely distributed and linked with them...
    Oh and just for completeness: All plugins work fine if called from within the developement system, the problem occurs only if called from within an exe.
    Solved!
    Go to Solution.

    There are some VIs in vi.lib that call other VIs dynamically.  Sometimes you have to explicitly add these to the EXE or distribution.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Exe files: help to open

    I have (had) an exe file on desktop that i tried to open with Vista / Fusion / Bootcamp with no success. Then tried another approach following these instructions:
    Directions for Use
    * If the .exe file did not download to your desktop, move it there.
    * Go to the Utilities folder on your Mac.
    * Open Terminal. Verify that you're at the root of your computer.
    * Type cd Desktop and press Return.
    * Type unzip filename.exe, where "filename" is the name of the downloaded file. Press Return.
    * Once Terminal is done inflating the file(s) to the desktop, quit Terminal.
    * Open the new file with the appropriate application.
    Didn't work: terminal told me it couldn't find it or something similar. I closed terminal and now there is an image of the document on desk top but no name or discription.
    Any suggestion on what to do?
    And was this the correct way to open exe?
    thanks for any help!!!

    I'm not sure what this question has to do with Apple's Software Update for Windows...a software package for Windows designed to update Apple products that run on Windows, but if .exe files can only be opened in Windows. So if you're having issues with a file I suggest you contact the author of the file or post your question on an Windows discussion forum, as what you're seeing has really nothing to do with Macs.

  • Unable to run an exe file from a Servlet

    I am not able to run a Servlet that calls an exe file using the following code. trial.exe is was built from a C program and it is simply a program that creates a text file with some content. I am using Tomcat 6.0 and JDK 1.5 on a Windows XP.
    {color:#000080}try
    Runtime rt=Runtime.getRuntime();
    String[] command = {"C://Tomcat 6.0//webapps//ROOT//WEB-INF//classes//trial.exe"};
    {color}
    {color:#000080}
    Process p = Runtime.getRuntime().exec(command);
    p.waitFor();
    catch(Throwable t)
    // System.out.print(t.getMessage());
    }{color}
    Before running the code on Tomcat I've compiled the code above in a simple java programe and it executed without any problem.
    Then I compiled the code within a servlet. No luck. Then I treid the following options:
    Executed the Tomcat service under the context of a user by specifying a user(Log On option) for the Tomcat service.
    Then with Local System Account, selecting &ldquo;Allow service to interact with desktop&rdquo;.
    this time also, no luck. Can somebody help me on this please ?
    BJJ

    For clarity I am rewriting the last sentences here:
    Then I compiled the above code within a servlet successfully and invoked the servlet from a browser with and without the following settings of Tomcat 6.0.
    1. Executed the Tomcat service under the context of a user by specifying a user (Log On option) for the Tomcat service.
    2. Then with Local System Account, selecting �Allow service to interact with desktop�.
    I was not succeeded with any of the methods mentioned above.

Maybe you are looking for

  • IPod video not recognized by iTunes after bad disconnect

    I recently disconnected my iPod without ejecting it first, (disk mode is enabled), and I had done it a few times before without a problem, so I figured why not. But this time it didn't work out. All of my music, videos etc are seemingly erased from t

  • What is a good way of storing movies?

    Hello, I would really appreciate some help with managing my movie collection, I intend to store them on an external drive because the internal one is not enough.  I am going to save all movies on the external drive but don't know whether to use itune

  • Best Back Up option

    Speaking of my 10 gigs of music.... I also have a bunch of stuff I recorded on Garage Band and other important documents and files. I want to back all this stuff up, but I only have a CD burner, not a DVD drive. I don't know that I want to spend craz

  • JMS Listener update user

    I am using IDM 8.1. I've setup the JMS Listener to activesync queue message to Sun IDM repository. I found that, it will consider any incoming queue message as create user request even I've checked the Create Unmatched Accounts in synchronization pol

  • VC IN MTS

    Hi All, Can I know any possibility of implementing Varinat configuration with Make to Stock Scenario Please let me know the configuration for MTS scenario. thank you regards Arun Prasad