Running scrpt exe silently

Hi,
I want to run a command (Start /S /M test.exe). If i try as below, then the console window is showing up. I want to execute the below without showing the console window. I tried using WinExec, but this is not executing the command.
system("Start /S /M test.exe")
Can someone please help on this.

Basically if the "start" part is a hard requirement, then you are stuck -- start is an internal command to cmd.exe.  If you want to run it you have to run cmd (which is what the system function does).  Running cmd will get you a console
window. 
You might be able to hide the console window from cmd.exe by calling CreateProcess and passing "Start /S /M test.exe" as arguments to cmd.exe.  You could use the LPSTARTUPINFO in CreateProcess to request that the console window start hidden
(I am not sure this will work, but it might).
Keep in mind that there is nothing that start does that you cannot do yourself using the Windows APIs (after all that is what cmd.exe does when you run the start command).  Most likely start is just a call to CreateProcess with various arguments based
on the arguments to start.

Similar Messages

  • Run Labview exe silently

    Hi all,
    I want to be able to run a Labview exe silently. I am aware that you can use VI properties to hide or make the front panel transparent when the main VI runs. However, when the application runs the front panel still "flashes" before it disappears. (I guess LV loads the runtime engine etc. before it gets to the bit of the code that makes the front panel hidden.)
    Is there any way to run an LV application with a hidden front panel without this flashing effect? I want to run it completely silently, without even a minimised icon.
    Thanks for listening.

    smercurio_fc wrote:
    Cory K wrote:
    One other thing you can do is edit the .ini file.
    Add this HideRootWindow=True
    This will take care of hiding the icon on the taskbar.
    Actually, it doesn't. That just hides the initial splash screen. It doesn't hide the button for the actual build application.
    Oh...
    Maybe I'm confusing it with another property.
    I very rarely mess with the ini files of my applications,
    but I know theres a property in there somewhere that can hide the application on the taskbar.
    Cory K

  • Labview 2010 run-time engine silent install

    I am having trouble with installing the run-time engine for LabVIEW 2010 with the silent option.
    I am using the minimum version of the run-time engine.
    Before I used the LV7 run-time engine. Then I could install it silently using LVRunTimeEng.exe /qb!
    In LabVIEW 2010 the run-time engine is no longer a single file but a directory that contains the installation files. There are two files that can be used to launch the installer Setup.exe and LV2010runtime.msi.
    Setup.exe does not seem to accept any command-line arguments. LV2010runtime.msi however accepts the command-line arguments and can be installed silently.
    Now my problem is that I am building a windows installer using a third party application and it is only possible to launch exe files after the installation completes. Before I could launch the LVRunTimeEng.exe /qb! to install the labview 7 run-time engine but now when I have upgraded to labview 2010 I cannot do the same for Setup.exe.
    My question is if it is possible to use the Setup.exe file to install the Labview 2010 run-time engine (minumum) silently?

    Setup.exe runs a number of other .exe files during its execution.  This article looks like it will allow you to run setup.exe silently by supressing all messages and windows:
    http://digital.ni.com/public.nsf/allkb/878FC4C374013ADF8625733D00688F67

  • Installing Oracle Hyperion Offline Planning (Offline.exe) silently

    Hi,
    I have been tasked with packaging the Smart View and Offline Planning products together for release to many users at my firm. To do so I need to be able to run both installers silently (without prompting the user). I am able to silence the install of Smart View with the following command line ...
    SmartView.exe /S /V"INSTALLDIR=C:\Progra~1\Oracle\SmartView ALLUSERS=2 REBOOT=ReallySuppress /QN"
    However I am unable to silence the install of the Offline.exe in the same way. In fact I get an error even if i run Offline.exe /? to try and determine what switches can be passed as parameters to the exe.
    I have also tried running Offline.exe /R to try and record a setup.iss file to silence it and get the same sort of error indicating an invalid switch.
    Is there any documentation that you could send me on how to silently install Offline.exe?
    Kind Regards,
    Duncan

    Hi,
    You should download the files from Oracle edelivery site.
    http://edelivery.oracle.com/
    I think the files you have downloaded is just a patch.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How can I run ni488216.exe without any prompts during installation?

    How can I run ni488216.exe without any prompts during installation (Silent mode)?

    Typically you can do a silent install of the NI-488.2 software by running:
    setup.exe /S LV_INSTALL path=
    Regards,
    Greg Caesar
    National Instruments
    Applications Engineer

  • Error while running sawserver.exe file

    Hi All ,
    I installed OBIEE 11.1.5 in my machine and Database is in different machine (For RCU) .OBIEE reports are working fine but, I tried to run sawserver.exe file to register new instanceconfig file to implement multiple rpds and Catalogs in OBIEE 11G by referring the below link.
    http://rnm1978.wordpress.com/2009/08/25/multiple-rpds-on-one-server-part-2-presentation-services/
    Command that I used is : sawserver.exe -c D:\Middleware\instances\instance1\config\OracleBIPresentationServicesComponent\coreapplication_obips1\instanceconfigdemo.xml
    Am getting the Error : the procedure entry point long jmp count not be located in the dynamic link library orauts.dll
    Thanks in Advance .

    Hi,
    How can i do it in OBIEE 11G? Any help will be grateful
    Regards,
    Joni

  • Running an exe from within Oracle WebLogic 10g R3 does not find dll

    Hi,
    I am facing a strange issue with Oracle WebLogic 10g R3.
    I use the code as shown in Listing 1 below to run a windows based application exe (batch job) from within my web application hosted on Oracle WebLogic 10g Release 3.
    Note that this code woks fine on Tomcat 6.x and OC4J (JDeveloper TP4).
    The exec gets executed but the log of the exe program shows it could not load certain DLLs.
    Note that these DLLs are in the same directoy as the Batch program and this directory is in the PATH.
    Running through simple Java Program Successful*
    When I run the same program from a java program it runs successfully. So this means some WebLogic environment does not get set properly.
    Running directly BatchProg.exe rather than cmd.exe fails*
    Also note that when I run the exe directly e.g. BatchProg.exe rather than through cmd.exe it gives me a error the system did not find the file specified.
    CreateProcess error=2, The system cannot find the file specified with cause java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    Listing 1:*
    String[] commandArgs = new String[|http://forums.oracle.com/forums/] { "cmd.exe", "/C", "BatchProg.exe \"param1\" \"param2\" " },null , l_workingDir)
    Runtime rt = Runtime.getRuntime();
    Process proc;
    proc = rt.exec( commandArgs, envParams, workingDir );
    ProcessIO errStream = new ProcessIO( proc.getErrorStream(), "ERROR");
    ProcessIO outStream = new ProcessIO( proc.getInputStream(), "OUTPUT");
    errStream.start(); // process any errors from the command
    outStream.start(); // process any output from the command
    System.out.println("Error=" +errStream);
    System.out.println("Out" + outStream);
    return (p_waitToFinish ? proc.waitFor() : this.SUCCESS);

    OK.
    I have posted this on the WebLogic Forum.
    Thanx.

  • T400 with ATI Radeon HD 3400. Driver not found after running ImageX.exe /Capture

    Hello,
    I was able to reproduce the following problem on a T400.
    - unattended installation of WXP-SP3 (slipstreamed)
    - reboot
    - install latest ATI driver from Lenovo/IBM site (8.503.2.2-080818a-069536C)
    - reboot
    At this point, the video driver is well configured.
    - Reboot once or twice, video driver still good.
    - Boot the T400 on WinPE 2.0
    - Capture the C:\ to a network file share using ImageX.exe (from Microsoft's WAIK 1.1)
    - Shutdown the T400, and reboot on C:\
    - At this point, video driver is "lost". The Hardware Wizard says "new driver found", but stick with default VGA.
    Then I get an ATI error telling the driver is missing or not well installed.
    - When rebooting several times, suddenly the card is back in the device manager as a Radeon HD 3400.
    (without re-installing the driver ...)
    Anyone has an explanation ?
    Please not I did not run "sysprep.exe" before capturing with ImageX.exe
    stefan

    Update on this problem.
    After running "sysprep.exe -mini -quiet -reseal -shutdown", I ran the "ImageX.exe /capture".
    After rebooting the T400, the ATI driver was fine.
    Either is a coincidence (but I could repeat it 3 times...) or it is not advised to run "ImageX.exe /Capture" on a non-syspreped Windows XP.
    I know that a non-syspreped Vista system has a limitation if captured with ImageX.exe. But I am not aware on any limitation with XP.
    Stefan

  • I can download firefox, but when I try to run it, windows 7 asks me to select a program type to run the *.exe file

    I am running windows 7 with IE 10. I want to switch to Firefox as my browser. I am able to download the Firefox Setup 22 0 exe, but when I try to open or run it, windows prompts me to "choose the program you want to use to open this file". This happens with both the Firefox Setup Stub 22 0 exe (274kb) and the Firefox Setup 22 0 exec (21,239Kb). I can't find any program on Windows to run this exe. Same thing happens when I try to run the troubleshooter exe.

    Hello annsboland
    Do you have also problem with others exe files ?
    try to create a new user account in Windows 7 and check it again
    see if the next articles in the links helps to create the new account:
    http://www.bleepingcomputer.com/tutorials/create-new-user-account-in-windows-vista-7/
    http://www.pcadvisor.co.uk/how-to/windows/3326039/how-add-new-user-account-in-windows-7/
    thank you

  • Requirement is to run CMD.EXE under the Local System Account. So that we can map a network drive to be used by a windows service, which will be created by command: - net use z: \\servername\sharedfolder /persistent:yes

    Environment:
    OS:  Windows 7 32/64 bit, Windows 2008 Server 64
    bit/ Windows 2012 Server 64 bit
    Priority:
    - Critical
    Requirement: - Since
    the Windows Service is running under the Local System Account, we would like to emulate this same behaviour.
    Basically, we would like to run CMD.EXE under the Local System Account. So that we can map a network drive to be used by a service using following
    command
    net use z: \\servername\sharedfolder /persistent:yes.
    Already Attempt:
    We tried to launch the CMD.exe using the DOS Task Scheduler AT command.  Here’s a sample command:
    AT 10:36 /interactive cmd.exe
    But I received a warning that “due
    to security enhancements, this task will run at the time excepted but not interactively.”
    It turns out that this approach will work for XP, 2000 and Server 2003 but due to session isolation
    Interactive services no longer work on Windows 7, Windows Server 2008 and above.
      2.  We
    tried to create a secondary Windows Service via the Service Control (sc.exe) which merely launches CMD.exe.
    <Drive>:\sc create RunCMDAsLSA binpath= "cmd" type=own type=interact <Drive>:\sc
    start RunCMDAsLSA
    In this case the service fails to start and results it the following error message:
    FAILED 1053: The service did not respond to the start or control request in a timely fashion.
      3. One
    suggestion, we found to launch CMD.exe via a Scheduled Task, but
    it is not giving any option to launch CMD.exe in interactive mode; so that I can map network drive using net command.
      4. I read an article, which
    demonstrates the use of PSTools from SysInternals. I launched the command line and executed following command
    psexec -i -s cmd.exe
    PSTools worked fine, but It seems that in scope of Sysinternals Software License
    Terms. You may not "use the software for commercial software hosting services."
    Application will deploy on client, which will be like commercial,
    so we are not able to use PSTools.         
    Kindly assist us for achieving the requirement. We have tried all the ways, but nothing is working for us. Kindly suggest.
    I will be really thankful.

    Hi Sir,
    Nothing worked from above for us. You can see our remarks on posted query.
    That’s why, we posted on forum.
    And there will not be any vulnerability, because, if we will use "net
    use ..."
    in network domain; definitely,
    we will provide username and password of mapped drive system.
    And, that system, itself is given by client; so that, there must not be any vulnerability; they are ready to provide user name and password.
    We need a way; by which we can complete the requirement. Kindly assist.
    Regards,
    S. P. Singh

  • How many times can I run PSConfig.exe -cmd upgrad .... command

    I'm getting VSS error in my eventlog -> application. I was getting 8213 and followed http://technet.microsoft.com/en-us/library/cc734219(v=ws.10).aspx and
    now I'm gettting 8230.
    Meanwhile my backups not are running. I remember running PSConfig command when I first installed windows and sharepoint 2010 on this box for system backup to work correctly.
    Now I run WMIC  QFE  LIST  FULL /Format:HTable > C:\Temp\HotfixList.html to retrieve all the installed update to check if KBs
    2460045 or 2687453 are installed unnoticed but I don't have any history of installed updates suprising eh!
    Now I want to run
    PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent
    -install -cmd installfeatures
    just incase one of them have been installed unnotice.
    How many times can I run this PSConfig command? How dangerous is this decision?

    You can run it as many times as you want, but it will take SharePoint down on that particular server (resets IIS, for example), while it executes.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • I have a problem with running an EXE file on win2000, the Lab View is 5.1 and I do not know if it is 16 bit...

    I have a problem with running an EXE file on win2000, the Lab View is 5.1 and I do not know if it is 16 bit...what should I do?

    Hi Arika,
    The drivers that you need to install to make your executable work depends on what your executable is doing. To get started, you need to have the LabVIEW Run-Time Engine installed on your target machine (the Win2000 machine you are planning to use) in order to run your executable. Next, you need to determine what drivers your executable uses, if any. For example, if you are using GPIB instrument control, you will need to install the NI-488 drivers on your target machine. If you are performing data acquisition, you will need to install NI-DAQ drivers. If you are doing image acquistion, you will need to install NI-IMAQ drivers.
    All these drivers are available for downloading on ni.com. To get the drivers, go to ht
    tp://www.ni.com/support , click on the link that takes you to Drivers and Updates (under Option 3), and click on the links to get to the driver(s) you need. For example, if you need the LabVIEW 5.1.1 Run-Time engine, click on the All Drivers and Updates by Application link on the main page (http://www.ni.com/softlib.nsf/). Then click on the LabVIEW link, Windows 2000, Run Time Engine, and then you will see the link to get to the page to download the LabVIEW 5.1.1 Run-Time Engine.
    I hope this information helps.
    Best Regards,
    Wilbur Shen
    National Instruments

  • Error while running sapccmsr.exe on Netweaver Trial

    Hi there,
    I've installed Netweaver Trial on my laptop, and I'm trying to run 'sapccmsr.exe -R' from the command to register the CCMS monitoring agent.
    It almost works, but then comes up with the following error:
    "After entering the RFC logon info for the user, the password
    will be stored here on this machine in a Secure Storage.
          client [000]                        :
          user  [CSMREG]                      : sap*
          language  [EN]                      :
          hostname of NSP message server [localhost] :
          use Load Balancing  [n]/y ?         : n
          hostname of application server [localhost] :
          system number (00 - 98)  [00]       :
          [optional] route string             :
          trace level    [0]                  :
          please enter password for [NSP:000:sap*]: *******
    Try to connect ...
    INFO: Updated saprfc.ini in agent work directory C:\saploc\PRFCLOG\sapccmsr
    ERROR: Registration failed: Can't get version of NSP. RfcRc = 2, C_CALL_FAILED
    RFC Error Info for SALS_MS_GET_LOCAL_MS_INFO
    message:
    status:  EXCEPTION C_CALL_FAILED RAISED
    intstat:
    INFO: dsr: dsrlib unloaded.
    EXITING with code 1"
    any help much appreciated, I'm a SAP newbie !
    TIA.
    Stuart.

    Hi,
    I have exactly the same problem.
    sapccmsr -R -j2ee pf=<dir>
          client [000]                        :
          user  [CSMREG]                      :
          language  [EN]                      :
          hostname of PIT message server  :
          use Load Balancing  [n]/y ?         :
          hostname of application server  :
          system number (00 - 98)      :
          [optional] route string             :
          trace level    [0]                  :
          please enter password for [PIT:000:CSMREG]:
    Try to connect ...
    INFO: Updated saprfc.ini in agent work directory /usr/sap/ccms/<SID>_<SN>/sapccmsr
    ERROR: Registration failed: Can't get version of PIT. RfcRc = 2, C_CALL_FAILED
    RFC Error Info for SALS_MS_GET_LOCAL_MS_INFO
    message:
    status:  EXCEPTION C_CALL_FAILED RAISED
    intstat:
    INFO: dsr: dsrlib unloaded.
    I have tried to register it via visual admin but the same error appeared.
    OS: AIX
    DB: oracle 10.2.0.4.0
    SAP component: PI7 (SAP NetWeaver 2004s)
    Any help?
    Thanks in advance
    Edited by: Jan Hinka on Jul 2, 2009 6:46 PM

  • Getting error while running sapinst.exe

    Hi Gurus,
    I have an error while running sapinst.exe.
    ===============================
    Error: Home directory is not available for user sapsdt
    Opened sylib722.dll
    exe dir is I:\usr\sap\***\tmp\3\sapinst_exe.10440.1359197818
    MessageLib initialized successfully.
    Creating file I:\usr\sap\***\tmp\3\sapinst_exe.10440.1359197818\dev_sap_kernel_test_26_Jan_2013_05_57_02.
    Removed file I:\usr\sap\***\tmp\3\sapinst_exe.10440.1359197818\dev_sap_kernel_test_26_Jan_2013_05_57_02.
    Initialized SAP kernel tracing to file I:\usr\sap\***\tmp\3\sapinst_exe.10440.1359197818\dev_sap_kernel
    Opened I:\usr\sap\PD3\tmp\3\sapinst_exe.10440.1359197818/iaguieng722.dll
    Initialized SAP kernel tracing to file dev_sap_kernel
    receiving and sending on port 21200
    existence check for user PD3ADM returned true.
    inserted account (***ADM, S-1-5-21-2072974133-1425365782-667646791-181569, USER) into the accountcache.
    Account sapsdt has ADS path 'WinNT://US5885SPAD/sapsdt'
    existence check for user sapsdt returned true.
    inserted account (sapsdt, S-1-5-21-1572296251-1555274763-1146236042-1004, USER) into the accountcache.
    Password set for account sapsdt.
    Environment variable SAPINST_JRE_HOME set to value 'I:/usr/sap/***/tmp/3/sapinst_exe.10440.1359197818/jre'.
    System call failed. Error 2 (The system cannot find the file specified.
    ) in execution of system call 'ATL::CRegKey::Open' with parameter (hKeyParent, SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-1572296251-1555274763-1146236042-1004, 0x20019), line (95) in file (d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcos.hpp), stack trace: sixxbmanagement.cpp: 2573: CSiComponentSet::startGUI()
    syxxbuser.cpp: 92: *** syslib entry point CSyUser::getHomeDirectoryPath(void) const ***
    synxcuser.cpp: 763: CSyPath CSyUserImpl::getHomeDirectory() const
    synxcuser.cpp: 671: CSyUserImpl::getProfileDirectory() const
    d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcos.hpp: 87: CSyRegKey::sap_open(HKEY hKeyParent, const iastring & keyName, REGSAM samDesired)
    Exception thrown near line 95 in file d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcos.hpp
    Stack trace:
    sixxbmanagement.cpp: 2573: CSiComponentSet::startGUI()
    syxxbuser.cpp: 92: *** syslib entry point CSyUser::getHomeDirectoryPath(void) const ***
    synxcuser.cpp: 763: CSyPath CSyUserImpl::getHomeDirectory() const
    synxcuser.cpp: 671: CSyUserImpl::getProfileDirectory() const
    d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcos.hpp: 87: CSyRegKey::sap_open(HKEY hKeyParent, const iastring & keyName, REGSAM samDesired)
    At line 95 file d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcos.hpp
    Call stack:
    sixxbmanagement.cpp: 2573: CSiComponentSet::startGUI()
    ======================================
    can someone please help me out for error.
    Thanks in advance

    check user profile in AD, add a path in the user profile Home folder directory of user SAPSDT, restart sapinst.

  • Error while running 'ldifde.exe' to import the schema file

    Hello,
    I'm doing a practical in exchange server. I have two servers, First one is the domain controller it's a Server 2012 R2 and the Second one is the server planing to install exchange 2010. it has server 2008 R2. My issue is when i'm trying to setup Exchange
    Server 2010 it comes error while installing "error while running 'ldifde.exe' to import the schema file" I tried to fix but i couldn't. Please if anyone know about this error give me a solution. 
    Regards.
    Ashane Deshapriya ( MCP )

    Can you run these commands from an elevated powershell and try to install exchange. 
    Import-Module ServerManager
    Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy -Restart
    If that also fails please post the error.
    Thanks, MAS
    Please mark as helpful if you find my comment helpful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

Maybe you are looking for

  • IPad 4 iOS 6.0.1 cannot connect to Facebook

    Hi all, I have a strange problem that I'm trying to solve. I have an iPad 2 (iOS 5.1.1), iPhone 4S (iOS 5.1.1) and now an iPad 4 (iOS 6.0.1) Using the WiFi network at work the new iPad cannot connect to Facebook properly. The two older devices, on iO

  • HP Officejet Pro 8625 - Will not acknowledge incoming fax while in sleep mode

    HP Officejet Pro 8625 - Will not acknowledge incoming fax while in sleep mode. The sender receives an error "no answer". When I call the fax number, if I touch the screen it will wake up immediately to receive the fax. Printing from the computer whil

  • How to access XML attributes with JSTL

    Hello, I'm using the XML functions of JSTL. I'm trying to parse the following RSS feed. http://weather.yahooapis.com/forecastrss?p=USNY0996 I can get it parsed and access the elements via JSTL, but is it possible to access the attributes of some of t

  • Multiple Views of same Universe with DIFFERENT rendering style, possible?

    I am trying to create a CAD-style application that uses several views to display the objects directly from the front, the side and the top using parallel projection and another view that shows the same objects from a freely moveable camera using pers

  • How to make editable Table in LabVIEW

    Hi, Could you please let me know how can I make an editable table. I read all the contents of the table from a spreadsheet file but I would like when I click on any of the entries in the first column I get checkboxs for all the entries in that row an