System Exec+ "CMD /C START DESK.CPL" won't work--why?

I've seen previous posts stating that the System Exec is the equivalent of the run box in windows (explaining why you can't execute commands like "dir").
However, I can run a line like this...
CMD /C START C:\WINNT\SYSTEM32\DESK.CPL
or
CMD /C START C:\WINNT\SYSTEM32\NIPORTS.CPL
..from the run menu, but not with System Exec+. CPL files of course are executables that load in the control panel and a WinNT shortcut will not show you the path.
The workaround is to create a batch file on the fly and execute the text above (since porting the application to a different computer means there might not be an existing batch file). The batch file looks like:
@CMD /C START C:\WINNT\SYSTEM32\DESK.CPL
@EXIT
I don't like having to generate a batch file inasmuch as it does get the job done, there is still the clunky dos box that flashes onto the screen for a brief second. Does anyone know what causes the above discrepancy? ...why it will run from the windows run box, but not with System Exec+? I'm guessing it has something to do with using the START command but I have never had to use it before in this fashion. Any ideas?

Arg! You're right!
I originally tried this with NIPORTS.CPL and used DESK.CPL in the above example (without testing it) because everyone has desktop properties but not necessarily the port properties for the E-NET/RS-485 converter. I'm guessing there was a spelling or path error somewhere that wouldn't let my original attempt execute--it works now.
Also: I didn't realize that any time you execute CMD that it will show a dos box, not just for batch files. Oh well...
Thanks for your input...

Similar Messages

  • System exec cmd window

    Hello, first time posting a question!
    I have spent a good while trying to find an already posted answer to this, and looking on the wider web, hope i have not just missed it.
    I am using XP Pro SP3, LV 8.6.
    I am not very familiar with Windows command lines and structures etc. 
    I am using the System Exec VI to start a third party piece of software. I have wired the path in to the path input, and if i wire cmd /c start xxx to the command line terminal the VI will run and start the software application (xxx.exe). As the VI executes the cmd window clunks open and closed. If i run the VI without the cmd /c part of the command then an Error 2 is returned (as widely reported by others).
    Is it possible to open an application without the cmd window opening and closing?
    Using the System Exec VI it is possible to open NotePad just by wiring 'NotePad' to the comand line terminal. Is it possible to place the third party software somewhere, or register it with the OS somehow so it could be started in the same way as NotePad (i.e. without the cmd window flashing up)?
    Thanks...
    Blue 
    Message Edited by BlueTwo on 09-25-2008 09:22 AM

    Hi Thoric, thanks for the suggestions, Success!
    I tried the True boolean to the Run Minimized, but it did not help.
    Changing the Environment Path string to include the path to the directory containing the application did work (once i had worked out the syntax).
    On to the next problem....
    Cheers,
    Blue 

  • Runtime.getRuntime().exec("cmd /c start file\\"+"My file.txt" ) Not work

    Hello
    i have a problem I use:
    Runtime.getRuntime().exec("cmd /c start file\\"+"My file.txt");
    to open "my file.txt" And I have error System Windows don't open file file\My becaus file My don't exist When I rename file to "Myfile.txt" and use:
    Runtime.getRuntime().exec("cmd /c start file\\"+"Myfile.txt");
    It's work great. My problem is when my file have space in name or other [ ], etc symbol. How fix this problem?
    Thenks to help:)

    Try using the verson where you specify the parameters in an array as this example shows:
    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=635363
    Note: you may need to enclose the file name in quotes

  • Keyboard Shortcuts in PSExtended CS6 won't work - why?

    Hi, any idea why lots of my shortcuts won't work or very little shortcuts are registered in my keyboard shortcut menu and when you use them they seem to be mixed up. Pls help.....
    Best, Bee

    thanks for the list of all shortcut keys -
    exemple for MixUp: I click Shift+F5 in order to get the unsharp mask and end up with the Fill window...
    Most of the simple shortcut work just fine - and now I have even figured out how to add my own shortcuts to the list So I might be even able to fix my MIXUP......
    Thanks, you helped me a lot.
    Best, Bee.

  • Flash Player won't work , why ?

    I updated Flash Player on my Laptop with Win 7 & IE 11 & it won't work . I also have a Desktop with Win 7 & IE 11 , it updated & works fine . What's going on ?

    http://forums.adobe.com/message/4041846
    http://forums.adobe.com/thread/885448
    http://forums.adobe.com/thread/867968

  • I deleted the System Configuration files and now my WiFi won't work.

    I've always loved Apple but ever since I upgraded to Yosemite I've been having problems with my WiFi connection, it kept dropping. So I decided to look for a solution and I found some forums that said I should go to System Configuration on Finder (Cmd+Shift+G on Finder, then write /Library/Preferences/SystemConfiguration) and that I should delete all the files there. I did just that and now I can't get online at all. Then I read in some other forums that you should only delete certain files... So you can imagine my face when I read that. I tried taking the files I deleted out of the Trash and everything but I still can't connect to the Internet wirelessly. I'm desperate!
    My wireless connection used to drop every 2 minutes, and I had to go to Network Preferences, Assistant, Diagnostic, and that would fix it for another 5 minutes, 10 if I was lucky. But now I can't get online at all. I've tried everything I could think of and nothing.
    I don't care if my Internet drops anymore, I just want it to go back to the way it was. I'm traveling to Argentina in a week and I need this fixed!!
    If anyone can help me I would really appreciate it.

    The following support article is somewhat outdated. Where it refers to booting from an installation disc, you should boot into Recovery (if running 10.7 or later) by holding down the key combination command-R at the chime. If your startup volume is encrypted with FileVault, you’ll have to unlock it in Disk Utility before you can do anything with it.
    Mac OS X: Gray screen appears during startup

  • TS1702 App system locked up at start of download an nothing works on the app, how can I unlock it.

    While downloading an app, it immediately locked up with msg "the XXX will now begin to download"

    Restart your phone by holding down the sleep/wake button till you see the "slide to power off" prompt.

  • It's won't work WHY!!!

    It compiles but I can't convert Strings to Integers
    Heres the code the classes involved work as I've tested them.
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    import StudentMarks;
    class StudentGrades extends JFrame implements ActionListener
         private JTextField field1;
         private JTextField field2;
         private JTextField field3;
         private JTextField field4;
         private JLabel word1;
         private JLabel word2;
         private JLabel word3;
         private JLabel word4;
         private JPanel main;
         private JPanel panel;
         private JPanel button;
         private JPanel output;
         private JButton EnterStudent;
         private JButton DisplayGrade;
         private JButton ClearFields;
         private JButton Quit;
         private JTextField displayField;
         private StudentMarks sml;
         public StudentGrades()
              setTitle("Student Grades");     //Title
              setSize (500,600);     //Size
              addWindowListener (new WindowAdapter()
              { public void windowClosing(WindowEvent e)
                   {System.exit(0);  //halt the program
                   //Word and Fields
                   word1= new JLabel ("Enter Student ID");
                   word1.setHorizontalAlignment(JLabel.RIGHT);
                   field1=new JTextField(" ");
                   field1.addActionListener(this);
                   word2 = new JLabel ("Enter Student Name");
                   word2.setHorizontalAlignment(JLabel.RIGHT);
                   field2= new JTextField(" ");
                   field2.addActionListener(this);
                   word3 = new JLabel ("Enter Mark 1");
                   word3.setHorizontalAlignment(JLabel.RIGHT);
                   field3 = new JTextField (" ");
                   field3.addActionListener(this);
                   word4= new JLabel ("Enter Mark 2");
                   word4.setHorizontalAlignment(JLabel.RIGHT);
                   field4 = new JTextField(" ");
                   field4.addActionListener(this);
                   //Add to panel the words and fields
                   panel= new JPanel(new GridLayout (4,2,5,5));
                   panel.add(word1);
                   panel.add(field1);
                   panel.add(word2);
                   panel.add(field2);
                   panel.add(word3);
                   panel.add(field3);
                   panel.add(word4);
                   panel.add(field4);
                   button = new JPanel();
                   button.setBackground(Color.white);
                   EnterStudent = new JButton("Enter Student");
                   DisplayGrade = new JButton("DisplayGrade");
                   ClearFields = new JButton("Clear Fields");
                   Quit = new JButton("Quit");
                   button.add(EnterStudent);
                   button.add(DisplayGrade);
                   button.add(ClearFields);
                   button.add(Quit);
                   EnterStudent.addActionListener(this);
                   DisplayGrade.addActionListener(this);
                   ClearFields.addActionListener(this);
                   Quit.addActionListener(this);
                   //The display field
                   displayField = new JTextField(" ");
                   displayField.setEditable(false);
                   displayField.setHorizontalAlignment(JTextField.CENTER);
                   output = new JPanel();
                   output.add(displayField,BorderLayout.SOUTH);
              //addWindowListener();
              //infield.addActionListener(this)     
              main = new JPanel(new GridLayout(6,4,5,5));
              main.add(panel,BorderLayout.NORTH);
              main.add(button,BorderLayout.CENTER);
              main.add(displayField,BorderLayout.SOUTH);
              Container contentPane = getContentPane();
              contentPane.add(main);
              public void actionPerformed (ActionEvent evt)
              Object source = evt.getSource();
                        if(source == Quit) System.exit(0);
                        else if (source == EnterStudent)
                                  //StudentMarks butt1;
                                  //String x = field1.getText();
                                  //String name = field2.getText();
                                  //String mak1 = field3.getText();
                                  //String mak2 = field4.getText();
                                  //Integer id = new Integer(field1.getText());
                                  //Integer mark1 = new Integer(field3.getText());
                                  //Integer mark2 = new Integer(field4.getText());
                                  //sml = new StudentMarks(1,"Baza",25,45);
                                  sml = new StudentMarks(Integer.parseInt(field1.getText()),field2.getText(),Integer.parseInt(field3.getText()),Integer.parseInt(field4.getText()));
                                  displayField.setText("Student " + sml.getID() + " marks have been entered");
                             else if (source == DisplayGrade)
                             //{sml = new StudentMarks(Integer.parseInt(field1.getText()),field2.getText(),Integer.parseInt(field3.getText()),Integer.parseInt(field4.getText()));
                             displayField.setText(sml + "\n" + sml.getGrade());
                             //StudentMarks butt2;
                             //String x = field1.getText();
                             //String name = field2.getText();
                             //String mak1 = field3.getText();
                             //String mak2 = field4.getText();
                             //int id, mark1, mark2;
                             //id = Integer.parseInt(x);
                             //mark1 = Integer.parseInt(mak1);
                             //mark2 = Integer.parseInt(mak2);
                             //butt2 = new StudentMarks(id,name,mark1,mark2);
                             //displayField.setText(butt2.getGrade());
    else if (source == ClearFields)
                                  field1.setText(" ");
                                  field2.setText(" ");
                                  field3.setText(" ");
                                  field4.setText(" ");
                                  displayField.setText(" ");
         public class StudentGradesTest
         {     public static void main (String[] args)
              {     StudentGrades s = new StudentGrades();
                   s.show();
         }

    Try getText().trim()
    This will remove spaces from the text & avoid NumberFormatException being thrown
    Warm regards
    Aswin Asokan

  • BRUSH STROKE in/out configuration WON't WORK why ?

    I use photoshop for years now, I'm not a noob.
    I've been trying to fix this problems since I started to use it, but I HAVEN't found a single solution to it !
    I customized the brush strokes to have a thin STROKE out/in but every time i get these bumps at the end of a stroke
    I reinstalled the program a couple of times, and it's not only photoshop CS6, every photoshop has this problem.
    But when I try another drawing program, there it works fine. SO I DON't KNOW WHAT TO DO.
    PLEASE HELP ME !!!

    thanks for the list of all shortcut keys -
    exemple for MixUp: I click Shift+F5 in order to get the unsharp mask and end up with the Fill window...
    Most of the simple shortcut work just fine - and now I have even figured out how to add my own shortcuts to the list So I might be even able to fix my MIXUP......
    Thanks, you helped me a lot.
    Best, Bee.

  • I am filling out a pdf but the send button won't work. why?

    I created a fillable PDF in Acrobat 9 pro and sent it out as a test to my email. I filled it out and pressed the send button but it does not work. I updated Adobe reader to version 10. Still nothing... anyone know what's wrong?

    - Make sure have something entered in the Subject fied.
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - iOS: Troubleshooting Messages

  • Intercom Service Won't work :( Why not? - FIXED IT THANKS

    Hi guys new to the Group,
    I have been playing with the Latest SDK. I have managed to get Hootie to work but I am unable to get Intercom to work correctly.
    When I set up the Service I add the IP Address of the phone I want to connect to. I then press the Services button and then the Intercom Service Option the phone I am wanting to speak with Enters the Intercom mode but my phone Shows a <!DOCTYPE HTML PUBLIC"-//W3C/DTD HTML 3.2 Final//EN"> Error Page.
    Anybody got any Idea where I am going wrong?
    Many Thanks
    Dave :)

    Have you edited the source as specified???
    <%
    // - Required COM Servers: Microsoft MSXML
    // - The 'includes' file(s) listed in the beginning of this file MUST be reachable
    // at the specified web path.
    // - When creating the Intercom Phone Service on CallManager, you MUST specify a
    // a Phone Service Parameter for the IP address of the destination intercom
    // phone. The Parameter Name must be 'phoneIP' and the parameter should
    // be marked as 'Required'.
    var pushuserid = "sdkapps";
    var pushpassword = "sdkapps";

  • I can't update or Re install the new Firefox on my win 8.1 system. The setup up that downloaded is not working, why?

    The setup up that downloaded is not working.

    If the file has "stub" in the name, it needs to connect back to the server for additional files. Some firewalls block that. Try installing the full installer from the following page (scroll down for your preferred language):
    https://www.mozilla.org/firefox/all/
    Any luck?

  • CS3 fireworks trial download won't work, why?

    when i try to launch the trial it gives me this message.
    a problem was encountered while trying to load the trial
    period for adobe fireworks cs3
    click quit to see if restarting your computer or reinstalling
    the software fixes the problem. otherwise click continue to display
    a screen where you can enter a valid serial number to begin using
    the product without trial.
    i tried it twice and resarted my computer. are the cs3 trials
    still working? thanks

    Hi
    You need MAC OS 10.7 or higher to install Muse CC 2014. Release notes | Adobe Muse CC

  • How to wait till the end of DOS program started using Runtime.exec(cmd)?

    In my Java program I need to call two DOS batch programs namely call.bat and start.bat. First I need to start the batch program call.bat and once that program is completed, I need to call the other batch file start.bat.
    The piece of code which I am using is:
    public static void ExecuteScripts(){
    try {
    \\Start the first batch program call.bat
    Process p = Runtime.getRuntime().exec("cmd /c start .\\scripts\\call.bat");
    p.waitFor();
    System.out.println("Exit value "+p.exitValue());
    \\Start the second batch program run.bat
    Process p1 = Runtime.getRuntime().exec("cmd /c start .\\scripts\\run.bat");
    catch (Exception e) {
    e.printStackTrace();
    For this piece of code it starts the first batch program(i.e, call.bat) in a command prompt and immediately it starts the second batch program (i.e, run.bat) in another command prompt. So it runs both the batch programs simultanesously. But what I wanted is that my program should wait till the first batch is executed and then start the second batch.
    Please tell me how to wait between these two runtime commands in JAVA
    With regards,
    C.Chenthil.
    -------------------

    Hi everybody thanks a lot.
    I got a solution from another forum. Kindly find the solution
    public static void ExecuteScripts(){
    try {
    \\Start the first batch program call.bat
    Process p = Runtime.getRuntime().exec("cmd /c start/wait .\\scripts\\call.bat");
    p.waitFor();
    System.out.println("Exit value "+p.exitValue());
    \\Start the second batch program run.bat
    Process p1 = Runtime.getRuntime().exec("cmd /c start/wait .\\scripts\\run.bat");
    catch (Exception e) {
    e.printStackTrace();
    Process p = Runtime.getRuntime().exec("cmd /c start/wait .\\scripts\\call.bat"); is the switch that served my purpose.

  • How does System Exec VI identify Standard Error within cmd code?

    I am using the System Exec VI to control a USB to serial adaptor program header, I have sucessfully written a .BAT file to call the CMD commands (the .exe I am running uses "-option" commands and the help file reccomends to do so) and it functions perfectly. My only issue is identifing errors. The "Standard Error Out" on the System Exec VI never outputs anything. Yes the wait until completion is TRUE and my standard output functions fine. I am curious as to how the System Exec VI  identifies errors from the command prompt and  why my errors are not showing up. I am currently using multiple match pattern string functions to identify the possible errors from my standar output for the time being but I would like to simplfy my code a bit and clean it up if at all possible. Not to mention there are most likely several other errors that could occur that I may have not identified. Some examples of stanadrd output errors i can get include include:
    {C:\Documents and Settings\owner\Desktop\RACK LINK>C:\DCRABBIT_10.66\Utilities\clRFU.exe "" -s "0":115200 -v -vp+ -usb+
    .bin not found
    C:\Documents and Settings\owner\Desktop\RACK LINK>pause
    Press any key to continue . . . }
    or
    {C:\Documents and Settings\owner\Desktop\RACK LINK>C:\DCRABBIT_10.66\Utilities\clRFU.exe "C:\Documents and Settings\owner\Desktop\RACK LINK\Calibration_v030.bin" -s "4":115200 -v -vp+ -usb+
    Rabbit Field Utility v4.62
    Installing Calibration v0.3.0
    Sending Coldloader
    Error: No Rabbit Processor Detected.
    C:\Documents and Settings\owner\Desktop\RACK LINK>pause
    Press any key to continue . . . }

    I think you should use error handling in batch programming, see this link http://www.robvanderwoude.com/errorlevel.php
    CLA 2014
    CCVID 2014

Maybe you are looking for

  • How are people using Catalogs?

    I know I asked this question some time ago, but I'd like to ask it again since I will soon be upgrading from LR2.7 to LR3. I would like some friendly advice from people how they use Lightroom Catalogs. I currently use several catalogs.  I have one st

  • Multiple iMac(s) - iMac (4)

    My iMac seems to have several versions residing on it.  For example, under my system preferences > Sharing, it says "iMac (4)" in the "Computer Name" field.  File Sharing is "on" and beneath that it says the following: "Other users can access shared

  • My iphone is stuck in recovery mode when trying to update to ios 5.

    hello, im asking for help because my iphone 3g/3gs (not sure) went into recovery mode after attempting to update to ios 5. now the thing is that.... i need to restore it because its my only phone and im still paying for service. but the point is that

  • Owa_util.who_called_me

    When i am using the procedure owa_util.who_called_me as explained below I am getting some error message displayed on my browser. What is wrong with my code? How should I rectify it? (variables declared) v_rp_owner      varchar2(32767); v_rp_name     

  • Installed Windows on Mac with Boot Camp and did something HORRIBLY WRONG

    Please please PLEASE tell me someone can help me!! I tried installing Windows XP Pro on my MacBook today, I tried following the instructions but none of the windows popped up like they showed in the instructions. When the Windows Setup (blue screen)