Run another windows program or script from forms

Hi there..
How can I run another windows-program (non-forms), exe or win-skript from a forms-application.
I 'need this technique to start a windows-Skrict (WSH) in a when-button-pressed-trigger in my forms-application running on MS-WIN 2000.
regards
Steffen

Hi Steffen,
you can use the "host" command or, more windows spcific "dde.app-beginn" from the built in package.
Michael

Similar Messages

  • How can I get LabVIEW 7.1 to spawn/run another windows program that normally runs standalone?

    I have numerous sensor devices, pressure, temperature, particle size, mass air flow, etc all contained in a process used for testing various filters in a lab environment. Most of the hardware came with drivers and programs where the user can run the stand-alone program and communicate, serially, with the devices, set parameters, receive data and graph same. However, my customer wishes to have LabVIEW control all of the programs. Is there a way to have LabVIEW spawn another executable?
    Thanks Much in advance
    Kert

    A good place to start is with the System Exec VI on the communications pallete.
    Using LabVIEW 2010SP1 and TestStand 4.5

  • Getting windows error during running the sql scripts from form 6i

    I made a little form application. The purpose of this application is to generate explain plan for a particular SQL. Some sql scripts run internally in order to populate the result on form’s screen after pressing the form’s button but I am getting windows error during running the sql scripts from form 6i.
    I am using forms 6i with patch 17 with Oracle 10G database on windows 2000 professional on same computer.
    This application runs fine with 8i.
    Please inform me where the problem is and how to overcome it.
    Zafri.

    I am using Text_IO in my form's when button press trigger , inorder to create the
    text file, then in the same when button press triger
    I am calling RMAN via host command in order to run the script which was created by text_IO.
    Below you find some of the code. I will appreciate if you solve the problem.
    when button press trigger:
    Declare
    in_file3 Text_IO.File_Type;
    linebuf3 VARCHAR2(1800);
    output11 varchar2(1000);
    BEGIN
         output11:='C:\EXPLAIN_PLUS\misc\rm_file.bat ';
    Host(output11,no_screen);
    :sql.execution_plan:= 'Working........................';
    synchronize;
    in_file3 := Text_IO.Fopen('c:\explain_plus\misc\create_table.txt', 'w');
    Text_IO.Put_Line(in_file3, linebuf3);
    Text_IO.put_line(in_file3,' ');
    Text_IO.put_line(in_file3,' run { sql "create table PLAN_TABLE (statement_id,...object_name varchar2(30),object_instance numeric,object_type varchar2(30),optimizer varchar2(255),search_columns number,id .....partition_start varchar2(255),partition_stop  varchar2(255),partition_id numeric,other long,distribution varchar2(30)) "; } ');
    Text_IO.put_line(in_file3,' ');
    Text_IO.put_line(in_file3,' ');
    Text_IO.FCLOSE(in_file3)
              Declare
    un VARCHAR2(80);
    pw VARCHAR2(80);
    cn VARCHAR2(80);
    output VARCHAR2(1000);
    output2 VARCHAR2(1000);
    dummy varchar2(40);
    in_file Text_IO.File_Type;
    linebuf VARCHAR2(1800);
    BEGIN
         Get_Connect_Info(un,pw,cn);
         /* for Plan_table Begg. Second INNER BLOCK */
         declare
              dummy2 varchar2(40);
         begin
         select table_name into dummy2 from all_tables where table_name='PLAN_TABLE';
         if dummy2 = 'PLAN_TABLE' then
         output2:='rman target/ nocatalog @C:\EXPLAIN_PLUS\MISC\TRUNC2.txt ' ;
    Host(output2,no_screen);
         end if;
         exception
         when no_data_found     then
    output2:='rman target/ nocatalog @C:\EXPLAIN_PLUS\misc\create_table.txt ';
    Host(output2,no_screen);
         end; --

  • Run SQLPlus script from Forms 10g

    Hellou.
    In Forms 10g I am generating sql script which need to be run under sqlplus. It contains some selects and thay are spooled into file (It need to be like this) But generating this script is in the form and I need althoug call this script from form.
    So my question is> How can I call sqlplus commands uder forms 10g?? For exmaple like this:
    sqlplus: @ Report.sql or other??
    Thanks Zoffob

    Hello,
    If you know the syntax used on the DOS command line, put it "as is" in a Webutil Client_Host() built-in (see the documentation)
    Francois

  • URGENT- Need advice on executing scripts from Forms 6i

    Hi all,
    Quick background info:
    I'm working on a conversion project from Forms 4.5 client/server applications to a three tier, web based Forms 6i environment.
    We're running Oracle 8i DB on HP-UX machines, Oracle 9ias on HP-UX machines, and users access forms through Netscape
    on Win2000 platform.
    The problem:
    I have a SQL execution interface form from which users have been able to run dynamic SQL scripts w/o having direct access to
    a SQL Plus prompt (uses the 'HOST' command in 4.5). How can this functionality be implemented in the three tier environment?
    Unless other options are available, my plan is to use a Java servlet to access the 8i database on the UNIX box and display
    output on an html page. Is there a better/easier way?!
    Any advice is appreciated...
    FLM
    Paychex, Inc.

    Thanks for the response,
    I may be able to invoke the script from Forms using the HOST command, but how is the script output
    displayed back to the browser?
    FLM
    [email protected]
    You can probably still use the host to sqlplus, but this time it will run on the Forms Server.
    You just need to make sure that the dynamic SQL files are uniquly identified for each customer.

  • Using the Parallels program to run a Windows program, can two Macs network to use the Windows program?

    When using the Parallels program to run a Windows program, can I network my MacBook Pro with my friend so we can use the same Windows program.

    Not legally.

  • How can I install and run a Windows program on my MacBook Pro/?

    How can I install and run a Windows program on my MacBook Pro?

    You have several options.
    1, Use a Virtual Machine like Vmware, Parallels etc... to Create a Virtual Windows Installation and Run your program in there.  A Virtual MAchine will runn in a Window on your Desktop and share your Mac's resources RAM HD space processor. Your MAc desktop will still be available while you run Windows install.
    http://www.parallels.com/
    2. Install Windows on a partition using Bootcamp. It will run a full installation of Windows you can boot into, and run your programs.  The Mac desktop will not available until your reboot the computer and start in OSx instead of Windows.
    https://www.apple.com/support/bootcamp/
    3. Use Wine /  Winebottler to run the Application without the need for a complete Windows installation.
    http://winebottler.kronenberg.org/

  • ACL Errors, Can't Running Any Windows Program (such : CMD, Notepad, TaskMgr, etc)

    Hello guys, Please help me.
    Today I got weird Problem, My Windows 7 Ultimate eventually can't execute any Windows Programs, such : Msiexec, Cmd, Notepad, Taskmgr, Msconfig, Regedit, etc.
    When I tried to run any Windows Programs, the Message Box Appeared with this message : Insufficient system resources exist to complete the requested service.
    Then I checked my System32 Directory, I was shocked because All of Windows Defaults Programs appeared with Locked Icon.
    Then I checked 1 by 1 Windows Program, for an Example : dcdiag.exe. I checked the Security Tab and I got this notifications : No Permissions have been assigned for this object.
    Warning : This a potential security risk because anyone who can access this object can take ownership on it. The object's owner should assign permissions as soon as possibe.
    Other Informations : 
    1. My Windows account Privilege is Administrator. 
    2. I've Actived Anti-Virus and Always Updated. 
    3. In Safe Mode Everything Was Fine, I Can run Notepad, Task Manager, Command Prompt, etc (except : Msiexec / .msi Installer). 
    4. I tried System Restore in Safe Mode, but I don't have any Restore Points. In Normal Mode, I can't execute System Restore.
    So, How can I solve this Problem?
    Body text cannot contain images or links until we are able to verify your account -__-"

    Hi,
    According to your description, it seems like a program which start with Windows blocked the access of these app.
    To open Msconfig, you can boot into Safe Mode firstly, then open Msconfig and following clean boot process to execute the operation.
    If there is any progress, please feel free let me know.
    Roger Lu
    TechNet Community Support

  • Running a windows program.

    Hello, I have a very expensive windows program that I really need to use. They don't make it for macs. What is the cheapest way I can run a windows program on my mac?
    Thanks.

    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    1. Install the Apple Boot Camp software. Purchase Windows XP w/Service Pak 2 or Vista. Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows. Boot Camp enables you to boot the computer into OS X or Windows.
    2. Parallels Desktop for Mac and Windows XP, Vista Business, or Vista Ultimate. Parallels is software virtualization that enables running Windows concurrently with OS X.
    3. VM Fusionand Windows XP, Vista Business, or Vista Ultimate. VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    4. CrossOver which enables running many Windows applications without having to install Windows. The Windows applications can run concurrently with OS X.
    5. VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris. It is not yet fully developed for the Mac - some features are not yet implemented - but it does work otherwise.
    6. Last is Q. Q is a freeware emulator that is compatible with Intel Macs. It is much slower than the virtualization software, Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc. There are performance differences between dual-boot systems and virtualization. The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system.
    See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion.
    Boot Camp is only available with Leopard. The Boot Camp Beta that was used with Tiger has expired and is no longer available for use. So contrary to the other poster's comment, Boot Camp isn't truly "free." You must purchase Leopard to get it.

  • After Installing Acrobat X Standard, Cannot print from another Windows Program

    I am having a strange problem.  Once I installed Acrobat X Standard, another Windows based program stopped printing.  It now comes up with a usp10.dll error, but most of the time it just crashes the program.  Tried reinstalling the program and no luck.  The error points at a Helvetica Font being the culprit that was installed with Acrobat.  I am not sure how to clear this up.
    Thanks

    I have not removed it.  One of the things I did try was going into the Registry and to FontSubstitutions and change the Helv to Helv,186 or something like that.

  • Running and stopping a batch script from Java

    I have a requirement in whcih I need to run a batch script which in turn calls another java progam. Now I am using following code which successfully calls batch script and consequently the batch script calls the another java program and batch script exits.
    public static void main(String[] args)
         try {
              Runtime.getRuntime().exec("cmd /c start  c:\\temp\\test.bat" );
         } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         }Now I am developing this a a client-server application on socket programming. Now after some time I need to stop that java program started by batch script. How can I do it? As per my understanding the call "Runtime.getRuntime().exec("cmd /c start c:\\temp\\test.bat" );" kick starts two processes. One the cmd command and another java command ran by test.bat. Now the how to relate the cmd window to the java cmd started by test.bat and how can i send a ctrl+C command to this cmd window so as to close the underlying running java program.
    Please advise.
    Thanks

    Hi Steve,
    Well, I'm having a quite different opinion on this: I would consider such an appraoch not nice but rather dirty...
    If you want users to execute (MaxL) commands against essbase but also would like to avoid installing the client software on each client box I would recommand using web services.
    User opens a browser, press a button, button (on the server side) calls a cmd (or sh) that calls the MaxL shell (on the server) that executes your maxl scripts.
    We have implemented this in two ways:
    1. over IIS (the older version, some years ago - but still running)
    2. over Apex (ever heard about it?) You need a Oracle DB where Apex is installed an running (latest Version is 4.1.1 and you should not use an older) and you need to install the essbase client software on the machine where th Oracle DB resides - However you only need to install it one time...
    If you only want to use the Oracle DB as a relais station (for you Apex Application and Web calls) you can simply install an XE on your essbase server and you have the prerequisites to get it work.
    Maybe it helps somehow.
    Regards
    Andre

  • How to call a HP-UX command or shell script from Forms 4.5

    Does anybody know how to call a unix command or shell script to get a files list of HP-UX server from Oracle Forms 4.5 on client side? I tried to use DBMS_PIPE package to get it done but I failed. Please let me have the solution if anybody knows how. Very urgent!

    I tried the host command before and it just let me shell to the DOS environment but not HP-UX environment as Forms was running on Windows platform. So, I could not run a unix command or a shell script. Is DBMS_PIPE the only way to get it done?

  • I need to run a Windows program on MacAir!  HELP!

    I have a Macbook Air.  I host a bowling tournament every year but the software I use doens't have a MAC version.  I'm told I can download some software that lets me use a Windows program on my Mac.
    Any suggestions on what to use?
    Thanks in advance for the help!

    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
         1. Install the Apple Boot Camp software.  Purchase Windows
             XP w/Service Pak2, Vista, or Windows 7.  For Boot Camp
             4.0 and above you can only use Windows 7 or later. Follow
             instructions in the Boot Camp documentation on
             installation of Boot Camp, creating Driver CD, and
             installing Windows.  Boot Camp enables you to boot the
             computer into OS X or Windows.
         2. Parallels Desktop for Mac and Windows XP, Vista Business,
             Vista Ultimate, or Windows 7.  Parallels is software
             virtualization that enables running Windows concurrently
             with OS X.
         3. VM Fusion and Windows XP, Vista Business, Vista Ultimate,
             or Windows 7.  VM Fusion is software virtualization that
             enables running Windows concurrently with OS X.
         4. CrossOver which enables running many Windows
             applications without having to install Windows.  The
             Windows applications can run concurrently with OS X.
         5. VirtualBox is an Open Source freeware virtual machine such
             as VM Fusion and Parallels that was developed by Solaris.
             It is not as fully developed for the Mac as Parallels and VM
             Fusion.
    Note that VirtualBox, Parallels, and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech Labs- Virtualization Benchmarks, January 2013 | MacTech for comparisons of Boot Camp, Parallels, and VM Fusion. Boot Camp is only available with Leopard or Snow Leopard. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • Run a shell script from FORM

    Hi,
    Is there a way that we can run a shell script on UNIX box from ORACLE FORMS 4.5 running on client PC (OS=windows on client,
    DB on unix).
    Thanks in advance for help

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Anton Weindl ([email protected]):
    You can either use rsh or rexec (both available on windows). You will have to edit the .rhosts in the home directory of the unix user the script will be run under:
    <Client-Hostname> <USER>
    <USER> must match the Windows-User exactly.
    You can then execute the Shell-Script with
    host('rsh <HOST> -l <USER> sh <SCRIPT>',NO_SCREEN)
    Hope that helps
    Anton Weindl
    <HR></BLOCKQUOTE>
    Thank You Anton Weindl,
    It seems like the thing I want to use instead of the dbms_pipe.
    I tried to use rsh and gives me the following message
    command: "rsh taurus -l nileshs test.sh"
    where taurus is hostname and
    guest is unix username
    I am logged on windows 2000 with this name.
    "taurus permission denied:"
    "rsh can't establish connection"
    Let me know if I am missing anything.
    Thanks.
    null

  • Unable to load and run bare metal program in DDR from SDK 2015.2

    Hello all,
    I'm starting to work with Zynq and I'm quite a noob in this field.
    I generated a system for a ZC702 board in which the connections to the DDR memory and the GPIO are correct.
    When I try to run a "Hello world" example that writes such words via serial, I'm facing the problem that I can just run it from the internal ram on the Zynq, not from the DDR. I will try to explain this with more detail.
    When I set the on-chip memory (initial address is 0x00000000) on the linker script and I run the program, the XMD console shows this:
    XMD% Processor started. Type "stop" to stop processor
    User Interrupt, Processor Stopped at 0x00101104
    Processor Reset .... DONE
    Downloading Program -- D:/50_EXPs/080715/Zynq_702_projects/zynq_book/zynq_book.sdk/hello_world_gpio/Debug/hello_world_gpio.elf
    section, .text: 0x00000000-0x0000191b
    section, .init: 0x0000191c-0x00001933
    section, .fini: 0x00001934-0x0000194b
    section, .rodata&colon; 0x0000194c-0x00001963
    section, .data&colon; 0x00001968-0x00001ddb
    section, .eh_frame: 0x00001ddc-0x00001ddf
    section, .mmu_tbl: 0x00004000-0x00007fff
    section, .init_array: 0x00008000-0x00008007
    section, .fini_array: 0x00008008-0x0000800b
    section, .bss: 0x0000800c-0x0000802f
    section, .heap: 0x00008030-0x0000842f
    section, .stack: 0x00008430-0x0000a02f
    Download Progress.10.20.30.40.50.60.70.80.90.Done
    Setting PC with Program Start Address 0x00000000
    As you can see, al the addresses are correct. In this moment, the processor executes the program and everything is fine.
    Then, if I select the DDR memory (initial address: 0x00100000) on the linker script generation, the console shows:
    XMD% Processor started. Type "stop" to stop processor
    Software Breakpoint 0 Hit, Processor Stopped at 0x000015bc
    Processor Reset .... DONE
    Downloading Program -- D:/50_EXPs/080715/Zynq_702_projects/zynq_book/zynq_book.sdk/hello_world_gpio/Debug/hello_world_gpio.elf
    section, .text: 0x00100000-0x0010191b
    section, .init: 0x0010191c-0x00101933
    section, .fini: 0x00101934-0x0010194b
    section, .rodata&colon; 0x0010194c-0x00101963
    section, .data&colon; 0x00101968-0x00101ddb
    section, .eh_frame: 0x00101ddc-0x00101ddf
    section, .mmu_tbl: 0x00104000-0x00107fff
    section, .init_array: 0x00108000-0x00108007
    section, .fini_array: 0x00108008-0x0010800b
    section, .bss: 0x0010800c-0x0010802f
    section, .heap: 0x00108030-0x0010842f
    section, .stack: 0x00108430-0x0010a02f
    Download Progress.10.20.30.40.50.60.70.80.90.Done
    Setting PC with Program Start Address 0x00100000
     But the program is not run and the processor is like "blocked".
    There is just one scenario in which this second configuration works, and it's when the on-chip memories were previously loaded with the first configuration. This could indicate that the program counter is not pointing to the DDR, but to the on-chip memory. Then, when I select the DDR, if there is nothing on the memories of the chip, it does not execute anything.
    Does anyone have any idea of what's exactly happening and how to fix it?
    Thanks in advance!
    Ignacio.

    Hello, bwiec,
    thank you four your response. I tried what you suggested, and it worked with no problem. I set the linker script so to store everything in OCM and executed the following piece of code:
    u32 *memPtr;
    u32 dataRead;
    memPtr = 0x00100001; /* DDR address */
    *memPtr = 0xdeadbeef;
    u32 dataRead = *memPtr;
    The value of dataRead is 0xdeadbeef;
    So, apparently that was not the problem. But, fortunately, I found the solution to this issue. I will give the details in case it is useful for more people.
    After triying to isolate the problem, I got to the following situation (I have been always working in SDK 2015.2):
    A project created with SDK 2014.2, with Hardware Platform Specification, Board Support Package and C project was working fine.
    The linker script of this project was indicating DDR usage in all the cases.
    The BSP was using Standalone OS 4.1
    When clicking Run, everything was working.
    I performed a board reset to clean the DDR.
    Then, if I changed the BSP to one created with the current version of SDK (2015.2), then the DDR memory was not being loaded properly, so the PC of the processor was pointing to the DDR base address but in that position there was no instruction, so it "blocked".
    Then if I changed the "Referenced BSP" to the original one, it worked again.
    If I went back to the 2015 BSP, then it worked, because the DDR was already loaded.
    If a reset of the board was performed, the project referencing the 2015 BSP stopped working, because the DDR memory was again empty and not being loaded.
    At the end, with the help of a coleage, I was able to find the problem, even though I don't really understand why this made my desing not to work:
    The SW16 of the ZC702 board was set to: SW16(1 to 5) = "00010". This configuration:
    Works with the BSP 2014 - referenced projects and the generated ".elf" files.
    Does not work if the C projects point to a BSP generated in SDK 2015.2, because the DDR is not loaded.
    The configuration that works for both cases is SW16(1 to 5) = "00000".
    I personally don't understand exactly what's wrong with the previous configuration of the switch, since it affect to the booting and it was working like that in version 2014.2. Does anyone know why this happens?
    Anyway I'm happy to have found the solution to this issue!
    Regards,
    Ignacio.

Maybe you are looking for

  • APO atp on sales orders with complete delivery.

    Hello all. We run ATP in APO for sales orders on a lot of products. Often a sales order will contain many different products & often Complete delivery will be chosen. When we do the ATP check one of the products may have a long delivery time compared

  • I found a bug in Power Query. Anyone know why this occurs?

    It took some time to isolate the cause of this. One of our SharePoint sites couldn't successfully be connected to with Power Query for Excel 2013.  We would receive this message: "DataSource.Error: OData: The feed's metadata document appears to be in

  • Setting an Active Document

    I am trying to set a particular doc as the active document after it and another one is opened after the user browses for two files. Below I have a function that occurs when a button is pressed. Most of the code is for the file browser that is platfor

  • Can you restore a deleted IM message from an ipod touch?

    Hello, my daughter has received some bullying text on her ipod via Skype IM chat which she has deleted but I now need to show them to the school. Does anyone know if it is possible to retrieve deleted IM messages from the ipod (4th gen)? I have check

  • Java IO Exception

    Hi, I am getting the "java.io.IOException: Caching not supported for .." exception, this is because Java Plug-in is unable to get the expiration and last-modification dates for the give JAR file from the Web Server. So my question is that how can get