Opening BATCH file through custom file extension

I have a situation where I've created my own filetype (.gme) to open my main java file. Each filetype has a corresponding ID which tells the application what instance of it to load. I want the file type to open a batch file which will in turn open the application. Is there code that I can give a custom file extension to open a batch file?

Check the permissions of that batch file.
It should be executable for the PI user (<sid>adm in Unix)
Regards
Stefan

Similar Messages

  • "save as" or modify feature, to see new/modified file through android file managers?

    adobe reader does not have the functionality i want, and i'm checking to see if anyone knows if "Adobe CreatePDF" has it. i'm on a motorola xoom w/ ice (4.1.1)
    with a file manager, i created a directory "Files" on the sdcard0 (along with all the other directories like 'Alarms', 'Android, 'DCIM', 'Download', etc.).  then i connect device to my pc w/ usb, i can copy .pdf files to this directory, open w/ reader and add comments, etc.  i can share/e-mail the modified .pdf's from within adobe.  when i look on the tablet in 'Files', i see the file size and date modified has changed.  but when i connect tablet back to a PC and look in 'Files' - i see only the original file size and date modified, and copying the files to a PC gets the original files w/ no comments. so i connected tablet to a difference PC than the one i used to copy the files on there (so i know it's not cached on the PC) - and still can only copy/see the original files. 
    does "Adobe CreatePDF" have a "save as" feature, or allow you to create files on the local device that you can then see through a file manager (as opposed to just e-mailing/sharing it from the app)?  that way we can load them back to a pc through usb.

    adobe reader does not have the functionality i want, and i'm checking to see if anyone knows if "Adobe CreatePDF" has it. i'm on a motorola xoom w/ ice (4.1.1)
    with a file manager, i created a directory "Files" on the sdcard0 (along with all the other directories like 'Alarms', 'Android, 'DCIM', 'Download', etc.).  then i connect device to my pc w/ usb, i can copy .pdf files to this directory, open w/ reader and add comments, etc.  i can share/e-mail the modified .pdf's from within adobe.  when i look on the tablet in 'Files', i see the file size and date modified has changed.  but when i connect tablet back to a PC and look in 'Files' - i see only the original file size and date modified, and copying the files to a PC gets the original files w/ no comments. so i connected tablet to a difference PC than the one i used to copy the files on there (so i know it's not cached on the PC) - and still can only copy/see the original files. 
    does "Adobe CreatePDF" have a "save as" feature, or allow you to create files on the local device that you can then see through a file manager (as opposed to just e-mailing/sharing it from the app)?  that way we can load them back to a pc through usb.

  • How do I skip footer records in Data file through control file of sql*loade

    hi,
    I am using sql*loader to load data from data file and i have written control file for it. How do i skip last '5' records of data file or the footer records to be skiped to read.
    For first '5' records to be skiped we can use "skip" to achieve it but how do i acheive for last '5' records.
    2)
    Can I mention two data files in one control file if so what is the syntax(like we give INFILE Where we mention the path of data file can i mention two data file in same control file)
    3)
    If i have datafile with variable length (ie 1st record with 200 charcter, 2nd with 150 character and 3rd with 180 character) then how do i load data into table, i mean what will be the syntax for it in control file.
    4)if i want to insert sysdate into table through control file how do i do it.
    5) If i have variable length records in data file and i have first name then white space between then and then last name, how do i insert this value which includes first name and last name into single column of the table.( i mean how do you handle the white space in between first name and last name in data file)
    Thanks in advance
    ram

    You should read the documentation about SQL*Loader.

  • Can we read a ZIP file through ESB file adapter?

    Hi,
    Is it possible to read a ZIP file from a specified locaiton either through a FTP adapter or file adapter as a opaque element and place it in another specified locaiton?
    So far the available options are to read a txt, csv, fixed length or cobol file.
    I tried to create a ESB reading ZIP file and place it in another locaiton. but it was not reading the ZIP file.
    Is it first possible for the ESB to read the ZIP file? if so then is there any specific configuratuion that we have to do for it to work?

    how can we read a MSWORD file through java?You can read it like any other file using FileInputStream
    and similar.
    Howvere, if you want do do something with it, like display
    it, you have a problem. AFAIK Microsoft do not release
    information about their document formats, and i have not
    seen a .doc viewer for java.

  • XI File Adapter Custom File Encoding for  issues between SJIS and CP932

    Dear SAP Forum,
    Has anybody found a solution for the difference between the JVM (IANA) SJIS and MS SJIS implementation ?
    When users enter characters in SAPGUI, the MS SJIS implementation is used, but when the XI file adapter writes SJIS, the JVM SJIS implementation is used, which causes issues for 7 characters:
    1. FULLWIDTH TILDE/EFBD9E                 8160     ~     〜     
    2. PARALLEL TO/E288A5                          8161     ∥     ‖     
    3. FULLWIDTH HYPHEN-MINUS/EFBC8D     817C     -     −     
    4. FULLWIDTH CENT SIGN/EFBFA0             8191     ¢     \u00A2     
    5. FULLWIDTH POUND SIGN/EFBFA1            8192     £     \u00A3     
    6. FULLWIDTH NOT SIGN/EFBFA2              81CA     ¬     \u00AC     
    7. REVERSE SOLIDUS                             815F     \     \u005C
    The following line of code can solve the problem (either in an individual mapping or in a module)
    String sOUT = myString.replace(\u0027~\u0027,\u0027〜\u0027).replace(\u0027∥\u0027,\u0027‖\u0027).replace(\u0027-\u0027,\u0027−\u0027).replace(\u0027¢\u0027,\u0027\u00A2\u0027).replace(\u0027£\u0027,\u0027\u00A3\u0027).replace(\u0027¬\u0027,\u0027\u00AC\u0027);
    But I would prefer to add a custome Character set to the file encoding. Has anybody tried this ?

    Dear SAP Forum,
    Has anybody found a solution for the difference between the JVM (IANA) SJIS and MS SJIS implementation ?
    When users enter characters in SAPGUI, the MS SJIS implementation is used, but when the XI file adapter writes SJIS, the JVM SJIS implementation is used, which causes issues for 7 characters:
    1. FULLWIDTH TILDE/EFBD9E                 8160     ~     〜     
    2. PARALLEL TO/E288A5                          8161     ∥     ‖     
    3. FULLWIDTH HYPHEN-MINUS/EFBC8D     817C     -     −     
    4. FULLWIDTH CENT SIGN/EFBFA0             8191     ¢     \u00A2     
    5. FULLWIDTH POUND SIGN/EFBFA1            8192     £     \u00A3     
    6. FULLWIDTH NOT SIGN/EFBFA2              81CA     ¬     \u00AC     
    7. REVERSE SOLIDUS                             815F     \     \u005C
    The following line of code can solve the problem (either in an individual mapping or in a module)
    String sOUT = myString.replace(\u0027~\u0027,\u0027〜\u0027).replace(\u0027∥\u0027,\u0027‖\u0027).replace(\u0027-\u0027,\u0027−\u0027).replace(\u0027¢\u0027,\u0027\u00A2\u0027).replace(\u0027£\u0027,\u0027\u00A3\u0027).replace(\u0027¬\u0027,\u0027\u00AC\u0027);
    But I would prefer to add a custome Character set to the file encoding. Has anybody tried this ?

  • Assistance with retrieving File and Version on a file with "custom file properties"

    Morning,
    I am attempting to get the file version and date info from a file on multiple workstations on our network. I already know the file location, name and even which workstations the file is on. What I cannot get the script to do is query them and return
    the file version/date info. I need this so that I can identify which workstations require an update.
    Here is what we have written so far, but it errors out with "there is not a "in" for the "for each" statement. The "in" is there so I am missing something else that I just cannot see. I need to feed the workstation names
    to the script and get the results out put to a csv file.
    $application = New-Object -ComObject excel.application 
    $application.Visible = $false 
    $document = $application.workbooks.open("C:\Program Files\Common Files\SAP Shared\BW\sapbex.xla") 
    $binding = "System.Reflection.BindingFlags" -as [type] 
    $customProperties = $document.CustomDocumentProperties 
    foreach ($Property in $customProperties) 
     $pn = [System.__ComObject].InvokeMember("name",$binding::GetProperty,$null,$property,$null) 
      trap [system.exception] 
         write-host -foreground blue "Value not found for $pn" 
        continue 
      "$pn`: " + 
       [System.__ComObject].InvokeMember("value",$binding::GetProperty,$null,$property,$null)  
    $application.quit()
    Thanks in advance for your time and assistance.
    T.S.
    

    
    Morning,
    I am attempting to get the file version and date info from a file on multiple workstations on our network. I already know the file location, name and even which workstations the file is on. What I cannot get the script to do is query them and return
    the file version/date info. I need this so that I can identify which workstations require an update.
    Here is what we have written so far, but it errors out with "there is not a "in" for the "for each" statement. The "in" is there so I am missing something else that I just cannot see. I need to feed the workstation names to the script and get the results
    out put to a csv file.
    $application = New-Object -ComObject excel.application 
    $application.Visible = $false 
    $document = $application.workbooks.open("C:\Program Files\Common Files\SAP Shared\BW\sapbex.xla") 
    $binding = "System.Reflection.BindingFlags" -as [type] 
    $customProperties = $document.CustomDocumentProperties 
    foreach ($Property in $customProperties) 
     $pn = [System.__ComObject].InvokeMember("name",$binding::GetProperty,$null,$property,$null) 
      trap [system.exception] 
         write-host -foreground blue "Value not found for $pn" 
        continue 
      "$pn`: " + 
       [System.__ComObject].InvokeMember("value",$binding::GetProperty,$null,$property,$null)  
    $application.quit()
    Thanks in advance for your time and assistance.
    T.S.
    I can't easily replicate that here since I don't have an appropriate XLA file handy.  Two ideas.
    1. Run a few lines and see what's in the CustomDocumentProperties member:
    $application = New-Object -ComObject excel.application
    $document = $application.workbooks.open("C:\Program Files\Common Files\SAP Shared\BW\sapbex.xla")
    $document.CustomDocumentProperties
    2. Change the foreach to a ForEach-Object by replacing "foreach ($Property in $customProperties) {" with "$document.CustomDocumentProperties | ForEach-Object {  $Property = $_ "

  • Reading PDF file through BPEL file Adapter

    Hi,
    We have a requirement where in we have to read PDF document. We have to use the data coming from the PDF.
    We checked "Native format not req" check box in File Adapter and could get the PDF data in some other format but are not able to read required data from it.
    Help in this regard is highly appreciated.
    Regards,
    Manasa.

    File adapter at present does not help in reading pdf data.
    to do this, you might wanna have a java program interface between your pdf and bpel.
    Message was edited by:
    AshishSharma

  • How to fetch XML file thru Sender File adapter

    Dear friends,
    I am having a scenario of fetching an xml file through sender file adapter. When i am testing my mapping in Test mode of message mapping it is working fine but when i fetch the real source xml file which is not having the XML namespace and Source Message type.
    It is throwing error in Runtime.
    At the same time when i edit the source xml file  with the XML NAMESPACE & Source Meessage type it is passing successfully to the target system.
    Kindly tell me friends how to solve this problem.
    Take care,
    Karthik

    Hi Friends,
    My Source XML file:
    <?xml version="1.0" encoding="UTF-8"?>
    <PeopleMsg>
       <Records>
          <Record>
                <FirstName>Dawei</FirstName>
                <LastName>He</LastName>
                <MiddleNameOrInitials>D</MiddleNameOrInitials>
                <IDs>
                    <IDType>
                          <IDTypeName>Employee ID (Country Equivalent)</IDTypeName>
                    </IDType>
                    <IDs>999999999999</IDs>
                </IDs>
           </Record>
       </Records>
    </PeopleMsg>
    My xml file in the Test Tab of Message mapping:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Source_MT xmlns:ns0="http://kpmg.com/ibs/mdm">
    <PeopleMsg>
       <Records>
          <Record>
                <FirstName>Dawei</FirstName>
                <LastName>He</LastName>
                <MiddleNameOrInitials>D</MiddleNameOrInitials>
                <IDs>
                    <IDType>
                          <IDTypeName>Employee ID (Country Equivalent)</IDTypeName>
                    </IDType>
                    <IDs>999999999999</IDs>
                </IDs>
           </Record>
       </Records>
    </PeopleMsg>
    </ns0:Source_MT>

  • New problem printing from financial websites - print button sends file to a "cgi" extension and adobe cannot open and print.

    I used to be able to print my bank statements directly from the website to my printer. Now the print program sends the file to a file with a "cgi" extension and saves it on my desktop but as an Adobe file. When i open it to print, Adobe says it is not supported or corrupt. running windows 7 on PC.

    mmsteer,
    I think I may be able to help you with this problem, which I was having with CS4 when I first upgraded to Lion, and others were having with CS3. This fix is courtesy of Aisolve on these discussion boards:
    Remove the Adobe PDF PPDs from the following folders:
    OS/Library/Printers/PPDs/contents/Resources/en.lproj,
    OS/Library/Printers/PPDs/contents/Resources/Zh_CN.lproj,
    OS/Library/Printers/PPDs/contents/Resources/Ja.lproj,
    OS/Library/Printers/PPDs/contents/Resources/ko.lproj,
    OS/Library/Printers/PPDs/contents/Resources/Zh_TW.lproj,
    Be sure to go to your system Library, not your user Library.
    Also, regarding my current problem, I spoke with an Apple tech person and found that the 10.7.2 upgrade apparently is the culprit, and is incompatible with wireless printing to my Lanier printer. I CAN print connected through USB. That's a work-around for now, but I'll need to contact Lanier about upgrading their driver for OS X 10.7.2.
    Aisolve was helping me with this issue, too, and assures me that if I'm able to generate a postscript file (which I was), and able to generate a PDF by distlling it through Adobe Distiller (which I am), then I can safely assume that the problem lies with the hardware, in this case the printer driver. This lines up with what Apple told me.

  • Download Excel file through Web dynpro with no windows open?

    Can we have a web dynpro application that just returns an Excel file in the response with no open windows? Similar to a java servlet that is used to download a Excel file?
    This basically means that I cannot use wdComponentAPI.getWindowManager().createNonModalExternalWindow()
    Java Servlet Code
    HttpSession session = request.getSession();      // get a handle on the session id
    response.setContentType("application/download");
    response.setHeader("Content-Disposition", "filename=RTIS_Report.xls");
    PrintWriter out = null;
    out = response.getWriter();
    String report = request.getParameter("REPORT");
    JCO.Table lines = download(request, session, report);
    for (int i = 0; i < lines.getNumRows(); i++) {
         lines.setRow(i);
         String content = lines.getString("LINES") + "\n";
         out.write(content);
         out.flush();
    out.flush();
    out.close();

    Hi,
    I think you can use IWD Cached Web Resource to achieve this..
    See the below code FYI..
    public void downloadToExcel( )
        String fileName = "Customer" + ".xls";
         IWDCachedWebResource cachedExcelResource = null;
         try
              File f = new File("Customer.xls");
              WritableWorkbook workbook =   Workbook.createWorkbook(f);
              WritableFont black = new WritableFont(WritableFont.createFont("Trebuchet MS"),WritableFont.DEFAULT_POINT_SIZE,WritableFont.BOLD,false,UnderlineStyle.SINGLE,Colour.BLACK);
              WritableCellFormat blackFormat = new WritableCellFormat(black);
              WritableFont blue = new WritableFont(WritableFont.createFont("Trebuchet MS"),WritableFont.DEFAULT_POINT_SIZE,WritableFont.NO_BOLD,false,UnderlineStyle.NO_UNDERLINE,Colour.BLUE);
              WritableCellFormat blueFormat = new WritableCellFormat(blue);
              WritableSheet sheet = workbook.createSheet("Customer", 0);
                   Label label;
                   String[] header={"Corporate Code","Batch ID"};
                   for (int i=0;i<2;i++)
                        label = new Label(i,0,header<i>.toString(),blackFormat);
                        sheet.addCell(label);
                   WritableCellFormat integerFormat = new WritableCellFormat(NumberFormats.INTEGER);
                   jxl.write.Number number;
                   // Reading the contents
                   for(int i=0;i<wdContext.nodeVn_DownloadToExcel().size();i++)
                        String strCorpName = wdContext.currentContextElement().getVa_CorpCode();
                        String strBatchID =     wdContext.nodeVn_DownloadToExcel().getVn_DownloadToExcelElementAt(i).getVa_BatchID();
                        label = new Label(0,i+1,strCorpName,blueFormat);
                        sheet.addCell(label);
                        label = new Label(1,i+1,strBatchID,blueFormat);
                        sheet.addCell(label);
                   workbook.setColourRGB(Colour.LIME, 0xff, 0, 0);
                   workbook.write();
                   FileInputStream excelCSVFile = new FileInputStream(f);
                   IWDCachedWebResource cachedWebResource = null;
                   if (excelCSVFile!= null)
                        cachedWebResource = WDWebResource.getWebResource(excelCSVFile, WDWebResourceType.getWebResourceType("xls","application/ms-excel"));
                   cachedWebResource.setResourceName(fileName);
              cachedExcelResource = cachedWebResource;
              wdContext.currentContextElement().setVa_DownloadToExcel(cachedExcelResource.getURL());
              workbook.close();
         catch (Exception ex)
              wdComponentAPI.getMessageManager().reportException("Error in Excel Download"+ex.getMessage(),false);
    Regards,
    Vijay

  • DW CS3 - custom file extension no longer working correctly

    Hi - for a particular job, I needed to use a custom file
    extension .htmx and it has been working fine.
    However, I went into DW CS3 today, and the file opens in the
    DW editor, but the code coloring and code hints etc seem to be
    broken.
    I've checked the Extensions.txt and MMDocumentTypes.xml
    files, and all seems present and correct - see
    this screencast to
    see the problem.
    Any ideas why it's not working? (I'm on Vista Business, but
    it has definitely been working and now isn't....)
    Mike

    Well, I managed to fix it by overwriting my
    MMDocumentTypes.xml file with a clean version from another machine.
    Weird.

  • Custom file open dialog box

    Dear Friends!
    I need a custom file open/select dialog box (i.e a LabVIEW VI) that I can customize to mimic the looks of my project color scheme etc. Does one exist somewhere? If someone has already made one could you kindly share it with me? I'll be so much grateful to you.The one below is the one that windows provide, I need it in the VI form (so that I can customize it, change its colors etc) and use this in my application.
    Message Edited by C .DOT on 03-19-2009 04:58 PM
    Attachments:
    Snap16.png ‏23 KB

    Here is a very simple example that could be a starting point.
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
    Attachments:
    browse folder.vi ‏16 KB

  • Batch script to open multiple excel and doc files

    Hi Everyone,
    Could anybody please provide a batch script to open multiple excel and doc files at a time.
    Appreciate ur quick response.
    Regards,

    You have several scripting choices within Windows. At a basic level you've got "batch files" - which run a series of command interpreter commands, and have a file extension of .BAT or .CMD. If you just wanted to open a list of Word documents, then assuming that the path to Word is correct (something like this below) you could list these in a file with a .BAT extension and run this (e.g. double click on it):
    "C:\Program Files\Microsoft Office\Office\Winword.exe" "C:\Documents and Settings\All Users\Desktop\File1.DOC"
    "C:\Program Files\Microsoft Office\Office\Winword.exe" "C:\Documents and Settings\All Users\Desktop\File2.DOC"
    "C:\Program Files\Microsoft Office\Office\Winword.exe" "C:\Documents and Settings\All Users\Desktop\File3.DOC"
    "C:\Program Files\Microsoft Office\Office\Excel.exe" "C:\Documents and Settings\All Users\Desktop\File1.XLS"
    "C:\Program Files\Microsoft Office\Office\Excel.exe" "C:\Documents and Settings\All Users\Desktop\File2.XLS"
    Another script language is VBScript, which was the example I gave. VBScript is available on most Windows platforms and can be run from a command prompt or within Windows. If you save the text I gave you above to a file with a .VBS extension you can double-click to run it (Windows) or open a command prompt and type CSCRIPT MyVBScript.VBS (assuming that's the name of the your .VBS file).
    Other script languages are available to achieve the same thing, including Powershell, however you'd need to have Powershell available on your PC.

  • How to open pdf or fdf file through firefox 3.0.5?

    Hi all,
         I am trying to open a fdf file through firefox in linux machine by clicking the link on that it wants to open a fdf file from remote location. When I am trying to open then it will show an error message in error console like:
    Security Error: Content at http://172.16.3.116:8080/ManuscriptScreening/source/journal/ProductionEntry.jsp may not load or link to smb://editor:edit*[email protected]/Copyediting/ELS/Manuscript_Screening/MS/RDTEST/02-Process/RDTEST-D-08-10245.fdf
    Can any body give me a solution for this problem? I am using smb to fetch files from server. In my linux machine we are using Adobe Acrobat 5.0 professional version and also Adobe Reader 8. The link is available in jsp page.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />
    <br />
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Creation of file through batch job scheduling

    Hi friends,
    I have a situation where I need to select vendor / customer and after that I need to select one of the option between invoice or payments when User select vendor then it should create a file through schedule batch job .
    I am not getting how to do it .
    Please help me if any one knows about it.
    Thanks in advance.
    Gaurav

    Which part? The creation of the file?  Since running in background, you would need to create the file using DATASET statements on the appliation server.  You will not be able to put the file on any frontend PC or server, only on the application server where you program is running.
    Regards,
    Rich Heilman

Maybe you are looking for

  • Can I transfer purcased from my old apple ID to my new apple ID

    I have an apple ID that I have used for many years. I will stop using the mail address associated with the apple ID. And have therefore opened a new me.com account, as I´m thinking of cancelling the old account. Can I transfer my old purchased items

  • How do I update Library Files/Folders

    When I download music onto my hard drive then add the songs to the library through iTunes, how do I get the songs to sort themselves into proper folders by singer, and by albums on the hard drive of my computer. Instead of having them as individual s

  • Applet to Applet socketeering

    Hi, I'm almost totally new to networking programming so I have a really simple question to ask: How can I have an applet running in a browser on one computer open a socket to another instance of that applet running on another computer? I guess I just

  • Update the web links on the Crystal Reports start page?

    Many of the web links on the Crystal Reports start page are now useless and direct to the general "Welcome to the SAP Support World!" page. When will / how can these be updated?

  • MSN - Can't send messages

    I have MSN installed on my Blackberry Curve. I can log on but when I try to send a message to one of my contacts I receive a message back saying it could not connect to the server. Does anyone else have this problem? Or know how to fix it? If anyone