Calling executable file

Hi all,
I have made one classical report in which i am taking output in text file.
Now for printing that text file i have made one BATCH File (Executable file of DOS).
So is there any command to execute that batch file directly from my report?
Thanks in Advance.

Use FM - WS_EXECUTE. Pass the pathname in the PROGRAM - thats it.
CALL FUNCTION 'WS_EXECUTE'
EXPORTING PROGRAM = 'D:/SKC.BAT'.
Hope it solves ur problem.

Similar Messages

  • Calling executable files

    Is it possible to call executable file, or applications, or calling the ms dos promp using a button in java?
    tnkss alot in advance....

    etuc,
    There's a box on the left below the words "Search Forums". Try typing some key words, like "DOS prompt" into that box and pressing the button. A number of discussions will appear. If none meet your need, the results page has an "advanced search" button which will let you be more specific.
    Google also indexes these forums (and many others) so you could try there for maybe "java DOS prompt". Again, the advanced search lets you home in on more specific results. Forums are for the questions you can't answer this way.

  • Calling executable file generated from labview in C++

    Hi,
    I am new to LabVIEW. I have to call an executable file  from C++ in a system where LabVIEW is not installed and Run Time Engine is installed. Can anyone please guide me with it. Thanks in advance.

    If it's just an executable (.exe) and you have the Runtime Engine installed, why not just launch the executable from your C++ application? I think it's something like CreateProcess() (You'll have to look up the details as I'm a LabVIEW not a C++ programmer!).
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Call third party Executable file.

    How to call third party executable file from SAP as a modal.
    I have a drum filling system. I want to call executable file of drum system which take a weight from instrument and write a text file. After completion of this SAP will read that text file and write it to screen.

    the best way to do it is using RFC (remote function call)
    your drum tool should be compatible in order to do it
    if not you can still send a command to operating system in order to execute your tool but this is a second choice

  • How to include LabVIEW Run-Time in executable file ?

    Hello folks,
    I have an application that need the user to simply calling executable file without setting up LabVIEW run-time because my executable file will be posted in LAN and anyone can run it remotely. What should I do? Any help very appreciate...
    Thanks so much

    You have to have labVIEW run-time installed on your computer in order to run a LabVIEW programs (vi or exe). What you can do when you distribute an exe file is to create an installer which lets you install LabVIEW run-time and create a menu item (in Windows) in the Start>>Programs menus. Then you can distribute the whole package and after running the installer, LabVIEW run time as well as the exe is installed.
    You can do this in the installer settings of the Application builder (when you create the .exe file). Go to the "Advanced" section. There you can add the LabVIEW run-time Engine to the installer.
    One other possibility you can do if several people want to use the programm over Lan is to use the LabVIEW webserver. You can run a programm somewhere on the
    network and other people can open the front panel in their Webbrowser. But maybe that's not exactly what you want. ??

  • Why do I get error -17500 when calling a batch file using the call executable step type?

    I am calling a batch file using the call executable step type. If the path to the batch file contains a space I get error -17500 and a message stating there was an error in "Post". For example the path to the batch file is "c:\TestWin\Test Files\...\Program.bat" When I run this I get the above mentioned error, however if I change my directory structure so the path is now "c:\TestWin\TestFiles\...\Program.bat" it runs fine. I use the browse feature to find my batch file so it is not me typing in a path incorrectly. I have removed the batch file and I get a different error stating that it couldn't find the file so it appears that for my error it can find the file but can't run it. I am
    sure that this has something to do with the fact that batch files are written in DOS but really don't want to resort to changing my directory structure on all my test stations. Is there any way to fix this problem so I can leave a space in my path?

    It appears I have figured it out. This was on another computer so I was unaware of how they used their computer. I like you got it to work in the temp directory and in fact got the program.bat file to work as long as I put it under the temp directory, but when I switched out to my TestWin directory it wouldn't work, so I removed everything from the directory except the batch file it self and it work. What I found out after adding files in one at a time is that the person had a file called "Test" with no file extension in there "c:\TestWin\" directory. Removing this file made it work. Putting the file back broke it. So it appeares that when teststand was running it followed the path saw a space and attempted to grab the "Test" file instead of bro
    wsing into the "Test Files" directory. If you create a file in your temp directory called "temp" with no file extension you will see the same problem. Thank you for your help.

  • How to call an application or a execute file in trigger?

    Hi,
    Can I call an application or a execute file in trigger?
    And how to do it?

    Hi Sarah,
    It would have been helpful to answer your question if your requirement was more detailed.
    Anyway, I assume that you want to know how to execute or run a sql script file from a trigger and if that is the case then you can use EXECUTE IMMEDIATE stmt in your trigger as follows-
    EXECUTE IMMEDIATE '@script_name';
    Regards,
    Murali Mohan

  • How to call up an executable file (eg. MSPaint) from within my java program

    How to call up an executable file (eg. MSPaint) from within my java program

    Ummm... why would you want to get MSPaint anyway? Even in the absense of real software, Java's own graphics tools are way more sophisticated - with a little time and effort, you could write a simple paint package that beat MSPaint hands down.

  • How i call a executable file from a pl/sql

    how i can call a executable file make in c (unix) from a pl/sql
    Thanks for your help

    You need to use libraries. use the executable and create a library by specifying the path and invoke it from the Stored procedure. It is like an external file to the database.
    --Rajakumar.

  • My excel report is not working in executable file ,however,it works well in vi

    Hi all ,
         Could any one please help me in getting the reason behind the executable file not working for excel report generation,however I can get the same function without any problem in main vi.
    I am attaching my code and executable file also ,please have a look into it and let me know where I am wrong.
    Thanks & Regards !
    sarita
    Message Edited by MindPower on 10-24-2007 01:40 AM
    Message Edited by MindPower on 10-24-2007 01:43 AM
    Attachments:
    test datalog.vi ‏264 KB
    test datalog-NEW.zip ‏1020 KB

    I can't open the vi in the moment. But by your description I think that I know the solution.
    When you build the executable you've to add dinammically the vi's from report generator that aren't in your main vi hierarchy. So, you've to open the vi's and find those that are open trough "open vi reference" and add them dinamicaly.
    And don't know if these tips are enough.
    From NI Zvezdana S.
    "When you use the Report Generation Toolkit to build a stand-alone application with the Application Builder, you must add _Word Dynamic VIs.vi from _wordsub.llb and _Excel Dynamic VIs.vi from _exclsub.llb as dynamic VIs. These two VIs contain subVIs that are called dynamically by the high-level Report Generation VIs. I believe that if you grab these VIs from the (desired office version part of the) installation CD instead of from the development machine, then everything should work. "
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL

  • How to create an executable file by including my C# project and database(SQL) in visual studio ?

    Hi,
         I had developed a project in visual studio c# and my database in SQL server. How can i create a executable file including both. 
    can any one give me a solution for this.
    I am trying to make executable in installshield.
    Thank you

    Hi,
    Try to use custom actions to call some managed method, execute the SQL script to create and initialize the database in the method.
    Check this article, it should be helpful for you to create the script and installation:
    https://msdn.microsoft.com/en-us/magazine/cc163919.aspx#S2
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I open a subvi when running a vi in an application (executable file)

    I have a vi that I converted into an executable file.  I would like to run it and at the same time be able to open the front panel of one of its subvis.  Does anybody know how to do that?
    Thanks,
    Jerome.

    You can set the SubVI to "Open Front Panel when Called" and "Close Afterward if Originally Closed" - that makes it a pop-up window. When your main calls it, the subVI window opens up. You do stuff, click the DONE button, and it disappears, and the main is up front again. (Make sure your subVI is MODAL if you do this).
    You can use the VI SERVER to load the VI, given a path to it. You can set the subVI to "Open Front Panel when Loaded", or you can set FRONT PANEL.OPEN to TRUE when you want it to appear, and FALSE when you want it to go away.
    You can make a subpanel on your main, and have the subVI inserted into that.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Error no. 4 in SAPGUI during graphic call or file transfer.

    Hi,
    In the landscape there are still 46b sap version, i have some functional queries that when i executes go to the sap graphic screen and it throws with no output. I understand that that it works in ECC version but not for 46b.
    This issue is related to SAPGUI, as i have the latest sapgui installed 710 that works well for ECC.
    But if i input the parameter in sap 46b system , and execute to get the graphic chart i get this:
    The Generation of Graphs for Stock Movements in the MC49 Transaction.
    When you call a hierarchy graphic, the following error messages are displayed
    1. 'Too much data in a table or too many tables defined
    2. E4: error writing to XC pipe: child #1 ( id: STAT ); reclen12
    3. Error no. 4 in SAPGUI during graphic call or file transfer.
    I have also look in to note 316232, 361222, 96885. for this but  this says to upgrade the sapgui,which is already in.
    What is the solution for this.
    Regards,
    Chetan.

    Take a look at this thread.  This may provide you some guidance as it appears that Error has been encountered before.
    [Link Here|Error no. 4 in SAPGUI with Graphics call or file  transfer;
    Regards,
    Zecher

  • Call .bat file from java code

    I need to call an application that uses a .bat file to execute from a java program. Is that possible?
    This is the .bat file:
    importcli.exe ciaf2735 C:\Importcli\files\SAI2735*.txt  
    importcli.exe ciaf2735 C:\Importcli\files\CI2735*.txt  
    importcli.exe ciaf2735 C:\Importcli\files\SC2735*.txt  
    importcli.exe db1800 C:\Importcli\files\*.mdb

    magaupe wrote:
    I need to call an application that uses a .bat file to execute from a java program. Is that possible?
    This is the .bat file:
    importcli.exe ciaf2735 C:\Importcli\files\SAI2735*.txt  
    importcli.exe ciaf2735 C:\Importcli\files\CI2735*.txt  
    importcli.exe ciaf2735 C:\Importcli\files\SC2735*.txt  
    importcli.exe db1800 C:\Importcli\files\*.mdb
    Hmmm, I wonder what would happen if there were a web search engine and you could research like this:
    [http://www.google.com/search?hl=en&q=call+.bat+file+from+java]

  • Locating source file NAME from the executable file?

    Hi all, 
    I wrote a vi a couple of year ago (call it file.vi), and created an executable out of it using the Application Builder (call it newfile.exe). I know I renamed the file
    when I created the executable and now I cannot remember what I called the source file (I have hundreds in my PC, and cannot go through them one by one).
    Is there anyway I can get the name of the original file from the executable? Notice that I am not asking to recreate the source file from the executable, which I understand is not possible. 

    murchak wrote:
    Dennis, 
    I must come clean and admit that I don't really know what source control is. Is it a back up of source codes in one place like a server? I am not a programmer but use some LabVIEW to 
    automate a few simple tasks (mostly related to test data). I work solo in this area and there's not a group of people working on different pieces of the same project. 
    I can Google and learn what source control is. I am assuming that the concept itself is not specific to LabVIEW, unless LabVIEW has build-in funtionality for source control
    It is more like a database of files.  It keeps versions on each file so that you can revert back to a previous version if needed.  If working in a team environment, it helps to merge code and keep everybody up to date with everybody else.  But the versioning is the most important part.  I then recommend keeping the repository on a server that is regularly backed up.
    For a simple SCC software, take a look at Tortoise SVN.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • I am using Muse v7.1 Build 329 anchor links not working

    Hi I am using Muse v7.1 and have found that anchor links from buttons and from text boxes fail to work in IE v10 but all work fine with Chrome. I have seen comments from others that if I use a space in the code it will work but the whole point of Mus

  • Dont understand how to convert my videos to my ipod

    ok, i downloaded videora and i converted a short movie. now, i dont know what to do from there. i managed to get it into my library, but when i go to "update" nothing shows up in the video section of my ipod. please help, im going crazy. thanks.

  • IPhoto won't import JPG from backup

    I'm getting this warning when I try to drag pics from a Time Capsule backup into iPhoto. I was able to import 6500 pics after a crash (thank god), but for some reason From Jan 1, 2011 I can't do it.  They are in .JPG format.

  • Find Friends not working under iOS 7

    Find Friends is not working since loading iOS7 on my iPhone 4S.  After logging in an alert appears stating "Connect to iTunes to Use Push Notifications" with some explanation and an OK button.  Pressing OK dismisses the alert, but it immediately reap

  • HT5622 Problem with Apple-ID code/payment details

    Hi, When I enter my Apple ID code, I am asked to verify my payment/visa card details, but as I do, I just get the message, that I can't use that card, and that I have to pick another one. I don't have any other cards though. I have doubble checked my