How to run a "exe" file that is residing in application server.

Hi,
I have a requirement in which a .exe (Windows executive) file needs to be run through code, which is residing in the application server. That exe file is nothing but a pdf-excel converter that will convert a pdf file to excel. The corresponding pdf file is also in the application server. Is there any function module to make this happen? I have come across the FM GUI_EXEC, but it operates on exe and pdf files that are in the presentation server.

HI Anirban
SM49 /SM69 might be of help
Could you please look into the link below.
Re: sm49/sm69

Similar Messages

  • How to run a exe file that is residing in the application server.

    Hi,
      I have a requirement in which a .exe (Windows executive) file needs to be run through code, which is residing in the application server. That exe file is nothing but a pdf-excel converter that will convert a pdf file to excel. The corresponding pdf file is also in the application server.  Is there any function module to make this happen? I have come across the FM GUI_EXEC, but it operates on exe and pdf files that are in the presentation server.

    hi
    1. customise external command in sm69
    2. use FM: SXPG_COMMAND_EXECUTE
    regards,darek

  • How to run an exe file in a java program

    Hi,
    Can somebody tell me how to run an exe file in a java program.
    Thank you!

    Yes, java.lang.Runtime.exec().
    Read this carefully before you do:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    Don't write a line of code before you're reviewed and understood the article completely. - MOD

  • How to change the excel file name which is in Application server...

    hi friends,
    my requirement is getting failed, when i'm trying to change the file name which is in Application server using the FM: SXPG_COMMAND_EXECUTE.
    when i execute above FM, i can see all my required details in SM69 like:
    COMMAND NAME: ZSPOOL_TEST1      
    OS: Windows NT
    TYPE: Customer 
    OS COMMAND: cmd rename Y:\OBRZ.PDF OBRZ38582.PDF
    once the above FM is executed, i'm getting SY-SUBRC = 2 (exception: COMMAND_NOT_FOUND).
    so, can any one guide me how to resolve this issue or is there any other way to rename the file which is in AS?
    thanks in advance...

    Hi ,
    First you can tranfer the AS server file to a new application server file.
    Then you delete the original file .
    To do that you can write code as follows --
    DATA : w_file(8) TYPE c VALUE 'FILE_NAM', " your present AS file name
           w_new(8) TYPE c VALUE 'NEW_FILE',
           fs_itab(255) TYPE c,
           t_itab LIKE TABLE OF fs_itab.
    OPEN DATASET w_file FOR OUTPUT IN BINARY MODE.
    DO.
      READ DATASET w_file INTO fs_itab. " Reading value from the AS file to field string
      IF sy-subrc NE 0.
        EXIT.
      ELSE.
        APPEND fs_itab TO t_itab. " Populating internal table form the file value
      ENDIF.
    ENDDO.
    OPEN DATASET w_new FOR INPUT IN BINARY MODE. " creating a new file if that does not exist
    LOOP AT t_itab INTO fs_itab.
      TRANSFER fs_itab TO  w_new. " Transfering to file
    ENDLOOP.
    CLOSE DATASET w_file..
    DELETE DATASET w_file. " Dleting the old file
    CLOSE DATASET w_new.  " Closing the final file
    Regards
    Pinaki

  • How to check if the file already exists in the application server directory

    Hi all. I'm on devsuite 10g.
    I transfer file from local machine to application server using webutil function webutil_file_transfer.client_to_as and I want to check if the file I'm transfering already exists on the server directory.
    How can I make this?
    Thanks all,
    Fabrizio

    use the text_io package and open the file in read-mode.
    like this
    declare
    xFileType text_io.file_type;
    begin
    xFileType := text_io.fopen('c:\temp\test.txt','R'); --file on the middle tier
    -- file exists;
    text_io.fclose(xFileType);
    exception
    when others then
    --file doesn't exist
    end;
    regards
    Christian

  • How to run a compiled file that needs a jar

    Hi all
    I'm trying to run a file that I've compiled that requires a jar
    I have both the jar and java file in the same directory
    HelloWorld.java
    itext.jar
    i compile using
    javac -cp itext.jar HelloWorld.java
    which produces my HelloWorld.class
    but when i run
    java HelloWorld
    I get loads of errors
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorl
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Sourc
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    am i doing something wrong with trying to run the class with the jar file?

    Didnt work
    C:\Projects\pdf>java -cp .;itext.jar HelloWorld
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld (wrong name: com/lowagie/examples/general/HelloWorld)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)

  • How to run java exe files without having to install jre

    Hi all i want to run a java application. i already converted the jar file to exe using Launch4j but the problem is that i want to run the application on other computers without having to install jre. please, is this possible and if yes, how can i do that. Thanks alot in advance

    The Launch4J website should explain how to bundle the JRE. I've not really used it myself though. If you can't get it to work you could try the launcher I use:
    http://www.megaupload.com/?d=FYZAVM77
    which comes with instructions. Or:
    http://sourceforge.net/projects/javaround
    Both of which are really easy to use.

  • How to run an exe file

    i need to run a thrid party software using java .i need to do it on windows platform
    thanks

    Thank you
    i was able to call the exe from the program

  • How to run sqlj.exe to translator Sqlj file which depends other file

    I want to use sqlj.exe to compile sqlj file. I don't know what option can be set for Sqlj.exe can automatically compile sqlj file and it's dependent file(sqlj or java).
    Here is one case:
    There are three six files.
    p1\A.sqlj
    p1\A1.sqlj
    p2\B.sqlj
    p3\C.java
    p3\DI.java
    p4\E.java
    1.the Class A has been declared as follow:
    public class A extends C implements DI{
    And in A.sqlj file, Class B and A1 will be used.
    2.the class E has been declared as follow:
    public class E extends C{
    I want run sqlj.exe as follow:
    sqlj -d=. A.sqlj
    Does it can auto compile C.java, DI.java and A1.sqlj, B.sqlj?
    We known, when java file is compiled, the dependent java file will be auto compiled,
    for example, the command,
    javac E.java
    will compile E.java and C.java.
    But how sqlj.exe automatically compile dependent file.
    Thanks,

    I want to run an exe file Runtime.exec()
    installed in a server from a client machine Server program that executes Runtime.exec() if told to do so by a client via a socket connection
    everyday at a particular (fixed) time.Look at System.currentTimeMillis(), Calendar, Date, Timer...

  • URL to run a report file that is not located in $ORACLE_HOME/reports dir

    All,
    I know very little about configuring reports on the web.
    We have had a 10g App Server running for several years. All of our reports files so far have been located in the Middle Tier's $ORACLE_HOME/reports directory.
    We now have a need to create sub-directories under the reports directory and run reports out of those sub-directories.
    After poking around the documentation, I'm not seeing how to do this.
    For example:
    $ORACLE_HOME/reports (has some legacy reports files in it)
    $ORACLE_HOME/reports/EI22 (new directory where we want to put EI22 related reports)
    $ORACLE_HOME/reports/EI23 (new directory where we want to put EI32 related reports.....etc)
    Normally, to run my reports in the $OH/reports directory, I use an URL like the following:
    http://hostname.domainname/reports/rwservlet?report=reportfilename.rdf&userid=uname/pwd@dbname&desformat=html&destype=cache
    How would I run a report file that now resides in the EI22 or EI23 directory?
    Thanks in advance for your assistance.

    As far as I know there is only one SourceDir property, you can assign multiple folders to it ... then at runtime you do not specify anything else in the URL, the reports server will look into each directory in the SourceDir (in order) for the report that you're trying to execute...
    If you have multiple versions of the same report located in the same server, then that's tricky because at runtime the reports server will execute the one from the directory where it finds it first.
    I personally prefer setting the REPORTS_PATH and having multiple ENVID sections that way in the URL I directly specify the ENVID which where the report is to be executed from...
    Here at work we used it for multiple applications with totally independent folders, so each application uses its own ENVID to invoke the reports.
    If you do not care/want this type of structure then use the SourceDir property that Andreas has mentioned and you do not need to add anything to your URL.

  • Running an exe file from java

    Hi , can anyone tell me how to run an exe file from my java program. the exe is in the same directory as my java files . When i click on a button i want to put something in the actionPerformed() method which will launch the exe file - prog.exe
    Hope someone can help me.
    Thanks Jim

    Hi !
    Look at the RunTime class...

  • Hi  can any body please tell me how to open the .exe files in mac and why it is not supported with unarchiever app , also i am not able to run and dvd's in my mac its not accepting any cd's or dvd'd why do i need to do some settings for it ?

    Hi  can any body please tell me how to open the .exe files in mac and why it is not supported with unarchiever app , also i am not able to run and dvd's in my mac its not accepting any cd's or dvd'd why? do i need to do some pre defined  settings to run the cd's and dvd's ?

    A .exe file is a Windows executable. OS X does not run Windows programs. If you need to use .exe files then you will need to install Windows on your Mac:
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows XP w/Service Pak2, Vista, or Windows 7.  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.
    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.
    VM Fusionand Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new 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 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 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.

  • How to make a .EXE file run always as a BACKGROUND PROCESS ???

    I have a .EXE file that i want to run always on STARTUP.
    And it should run only in the BACKGROUND PROCESS LIST in TASK MANAGER.
    It should not show up on the TASKBAR or NOTIFICATION TRAY.
    Plz Help !!!! Thnx in advance

    What is the need for such a security?
    If you are an administrator and you want to run the EXE file in background in all other user accounts (which are non-admins), you can simply add the file path under the run key in registry. The registry entry is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    The EXE file is not visible to non-admin users (of course, visible to administrators), even in Task Manager.
    Depending on the application behaviour and the way it works, it may or may not be visible in system tray or task bar.
    Balaji Kundalam
    some where i read to add the path in inverted commas followed by -auto
    Eg : "C:\Users\GAURAV\Documents\****.exe" -auto
    i added it and it ran on startup but it showed on my desktop !!! i dnt want it to show on desktop !

  • How so I open exe file after jailbreaking my iphone4s. I bought soft ware that needs to open exe file

    How do I open exe file after my phone has been jail broken.

    Sorry, we cannot address jailbroken phone issues on this forum.
    GB

  • 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

Maybe you are looking for