Executing system command (third party program) from extend script without showing console on windows

I am using following code on mac:
app.system("/path/to/external/executable &");
It runs external program in background (without showing console/terminal).
On windows I tried many things like:
app.system('start "" "/path/to/external/executable"');
app.system('start "" /B "/path/to/external/executable"');
And I was also trying to solve it using visual basic.
Unfortunately everytime I use app.system(...) then windows console is showed on the screen for half of the second, then it disappears and progrm runs in background. Is it possible to avoid showing console window? Maybe there is another way of executing third party program?

You can try to save a vbscript :
Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run("""\path\to\external\executable"""), 0, True
Set objShell = Nothing
than just execute it from javascript: 
var vbFile = new File("path to your vbscript file")
vb.execute();

Similar Messages

  • Execute a command or another program

    Can someone please how I can execute an operating system command or another program from Java. Example I want to execute the Unix command ls from Java.
    Thanks
    Peter Loo

    Hi Peter,
    Can someone please how I can execute an operating
    system command or another program from Java. Example I
    want to execute the Unix command ls from Java.I think you could use the following code:
    try{
    Runtime.getRuntime().exec("ls");
    }catch(IOException ioe){
       // some exception handler...
    }Hope that helps
    Adrian

  • Installing a third party program on macbook air

    Can someone please tell me how to install a third party program from a CD onto a Macbook Air?
    I've spent the last 8-10 hours trying to figure this out and I keep going around in circles. The program I want to install is on my desktop. I've tried Migration Assistant but it wants to install =all= my applications rather than just one. I've tried loading the CD onto a flash drive but when installation starts I keep getting a message to install the program CD, which is residing on the flash drive and which Air apparently cannot read. I've tried CD/file sharing, but the Air does not have an option for CD/DVD sharing. There is no Firewire connection on the Air so that option is out. I've been to two electronic and neither has the cables for connection my desktop to my Air. Apple support is no help.
    Is it really supposed to be this difficult?

    HI andouille07,
    What application are you trying to install.
    Have you tried fallowing this article?
    Enable DVD or CD Sharing
    http://support.apple.com/kb/ht1131
    Enable DVD or CD Sharing should be performed on your desktop.
    while "Use a shared DVD or CD:" should be on the air.
    If you do not see the remote disk on the air. make sure both your desktop and macbook air are connected to the same network over wifi.
    If that dose not work you could try making a disk image, and then coping the disk image to the flash drive and bringing the flash drive over to the other computer. assuming your desktop is a mac.
    http://www.ehow.com/video4978318create-disk-image-mac-os.html explains how to make a disk image.
    you can always purchase the external super drive as well.
    http://store.apple.com/us/product/MB397G/A

  • HOW COULD CONNECT FROM SAP SYSTEM TO THIRD PARTY JAVA APPLICATION

    HI expects,
            HOW COULD CONNECT FROM SAP SYSTEM TO THIRD PARTY JAVA or . DET APPLICATION.please provide me some scenarios and documents.please help me.

    Hi,
    In the sender side i.e. in SAP system you can use IDoc/RFC/Proxy to push the data to XI.
    IDoc supports only Async communication and in Sync case performace is good using Proxy.
    In the receiver side you can use Java Proxy to connect to the Java application or you can even bulid a webservice over the Java/.Net application and use SOAP adapter to post data to it.
    Thanks
    SaNv...

  • I am going to upgrade from leopard to snow leopard ( I just purchased the snow leopard disk today).  Will I be able to keep my data and third party programs after installation?

    Hi Apple Community,
    This is my first time using the Apple Support Communities.  After installing/upgrading to snow leopard from disk will I lose my data and my third party programs like Adobe Indesign?
    Thank you in advance,
    John

    John... welcome to ASC,
    You could if you don't backup everything to an external drive first. Always backup your important data before upgrading from one Mac OS to the next.
    "Backup"  most important word in computing 
    Make sure your Mac meets Snow Leopard's minimum requirements before upgrading >   Mac OS X v10.6 Snow Leopard - Technical Specifications

  • Exporting video to 8k from premiere or third party program for youtube.

    Hello all,
    i have been uploading video that has been scaled to youtube in 8k and it processed in 8k! the problem is that with some video codecs (shadowplay)  i was using to lightly capture a game scene is not working.
    ShadowPlay encodes video using H.264 codec and outputs in MP4 format. It's compatible with popular players such as Windows Media Player, VLC, and YouTube.
    i have tried exporting the video matching the sequence settings and even with tons of others.
    after that i usually take that exported video and export it again through this program.
    ClipToolz Convert V2 Home Page
    this program scales and compresses the video in .h265 at 8k and then i upload it to youtube most of the time it works. but for the life of me this last video will not process in 8k on youtube.
    so youtube processes and shows done but only has up to 360p even if i leave the video up on youtube for 1 week it will not process up farther than 360p..
    the problem i come to you today with is when processing on youtube the video processed for upload to youtube in 8k only work on any other video even if i download one and do a test upload in 8k it processes in 8k.
    im thinking there is something wrong with the initial filmed video or something.
    SO i uploaded to youtube the raw video that i captured before the first premiere export. and guess what?
    the video posted and processed in its native 2k resolution that it was filmed in..
    i would like to know if you know any way possible to upload in 8k so it processes or any third party program i can use to make it work.

    I understand this might be a good technical exercise but how do you view 8K content?

  • Execute system command line instructions

    Hi,
    suppose that my java program has to execute a system command line instrction(let's say dir/p for dos or ls * f or linux)
    how can we execute these system command line instructions programmatically from within a java program?
    thanks indeed for helping...

    i want to thank jfbriere for the usefull link he/she provides me with. 1- He
    2- You're welcome :-)

  • Can i use technical system type 'third party' for r3 system in idoc2file sc

    Hi,
          i am doing a sample out bound scenario (idoc 2 file), distributing idoc from sap system to csv file (in same network). in this can i use thchnical system type 'third party' for R3 system. will the scenario work properly or not.
      And some times some of the business systems in SLD are not visible in ID, when assigning business system in ID.can any one tell reason for this.
      can any one suggest me,........ Thanks in advance & would be appreciated.
    Regards
    Rajesh

    Hi,
    <i> can i use thchnical system type 'third party' for R3 system. will the scenario work properly or not.</i>
       --- No u can't use this...Ur technical system must be "WebAS ABAP" only.  For file system you use 3rd party system. means ur technical system like follows.
    sender
    R/3  -- WebAs ABAP
    Receiver
    File  - 3 rd pary system
    <i>And some times some of the business systems in SLD are not visible in ID, when assigning business system in ID.can any one tell reason for this.</i>
      Click "Clear SLD cache" repeatly for some time in ID, it will come.
    regards,
    Ansar.

  • How to raise customer invoice in case of third party sale from PS

    Dear All,
               In case of third party sale from project systems module, PR is raised which is further converted to PO and once the material reaches at client place GRN is done.Based upon the GRN the actual cost is booked to the project.How should I raise the customer invoice against the materials received by the customer?
    I went through the Forum and based upon the threads there, I came to know that one option is to  create sales order for the same items and do order based billings.But for this I have to enter the same materials items again in the Sales order which is nothing but duplicacy of data.
    Is there any alternative to this? Or some other way by which the PO line items be copied to sales order so that I can save time while creating sales order.
    Regards,
    B P Singh

    Hi Virendra,
                       Business scenario is like this.
    I have created project and activities.Have assigned materials as 3rd party sale in NWA. I have released the project.PR are getting followed by PO.On doing the GR the actual costs are getting booked on NWA.
    My concern is how to bill the Items(the same material components) which are assigned to activity.
    As per your input I need to do Resource Related billing.Thanks for the input.It is no longer required to assign materials in DIP to Carry out RRB. 
    To carry out RRB do I need to create Sales Order first ? If  No then how to do RRB? If Yes  I need to create a Sales Order with all the material components which I have assigned at activity level. So I was looking for some alternative so that SO creation becomes less tedious.
    Regards,
    B P Singh

  • How to execute dos command in Java program?

    In Perl, it has System(command) to call dos command.
    Does java have this thing?
    or any other way to execute dos command in java program?
    Because i must call javacto compile a file when the user inputed a java file name.

    Look in the Runtime class, it is implemented using the Singleton design pattern so you have to use the static method getRuntime to get its only instance, on that instance you can invoke methods like
    exec(String command) that will execute that command in a dos shell.
    Regards,
    Gerrit.

  • SLD - Technical System Types: Third-Party vs. Standalone Java

    Hi all,
    can somebody explain what´s the difference between the technical system types
    "Third-Party" and "Standalone Java"
    Please give also one example for a standalon java type.
    Thanks,
    Kris

    Hi Kris,
    1. Third Party: Can be any Tech System. For example you want to send a xml message from a file adapter residing on your PC. You can define your PC as a 3rd party Tech/Business System.
    2. StandAlone Java: WEBAS640 has bot Basis and Java Stacks. If you installed only the standalone java Stack on a server, then you define a standalone java tech system.
    For more info check the XI-3.0 Help documentation.
    Regards
    Prasad

  • Import settings of third-party programs

    When Tiger is being clean-installed, the installer asks me whether I want to import settings from another volume. Does the installer of Tiger import settings of third-party programs in addition to the settings of the OS?

    "Does the installer of Tiger import settings of third-party programs in addition to the settings of the OS? "
    Yes, as all application preferences are stored within the user's home folder.

  • Un-installing a third party program?

    Is there any way to un-install a third party program?

    Follow the steps outlined in http://thexlab.com/faqs/renamehomerecovery.html to recover from renaming the home folder. If that doesn't fix things, then search the forums for change home folder name and see other reports.

  • WIndows 8.1 64bit, Windows Installers stalls with any install, updates or third party programs.

    WIndows 8.1 64bit, Windows Installers stalls with any install, updates or third party programs. Third party program installations work if I restart in safe mode. Updates don't as they cannot be installed in safe mode and require normal mode.
    Been happening for months now. Some installations after a long time finally proceed, others dont. 
    Already trying uninstalling antivirus (Bitdefender) with no result.
    Thanks

    Hi,
    Could you check this issue under clean boot?
    Also try this fix tool it repair corrupted registry keys.
    https://support.microsoft.com/en-us/mats/program_install_and_uninstall
    Regards,
    D. Wu
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Third party returns from customer to vendor (Urgent)

    Hi,
    We have an urgent requirement regarding an issue with third party returns from customer.
    The scenario required is as follows :
    When the customer returns the goods in Third party proccess the goods should be directly returned to the vendor instead of receiving into our plant .
    How can we map this bussiness proccess?
    Currently the returns are handled as per the standard SAP proccess ie.,
    Customer returns the goods> Return order is created>Return delivery created (PGR)>Credit memo created.
    In this case we are receiving goods into our plant .

    Hi Shrikant
    1. If delivery of goods is the only issue then you can ask customer to make invoice with Invoice to your company address and Delivery address as the vendor address. Practically it is possible.
    2. Then you can make corresponding entries in SAP and regularise it.
    Thnx
    Nilesh

Maybe you are looking for