Custom Command - Invoke a link file

Hi All,
I was able to write custom command that could invoke an exe file in the device. The exe file had to be present in the Windows folder (or) root folder (or) Oracle Lite installation folder.
Is the only file that could be invoked by System.execute method are "exe" files. Can I invoke any link or batch files in Windows Mobile, so that would be helpful in invoking my java programs instead of having to invoke exe.
Thanks,
Aravind.

We are able to launch a .bat file using the System.execute("cmd /C \test.bat") call from a customize command.
Though cmd.exe is not available in Windows Mobile 6 prof by default. It can be installed from the windows mobile developer power toys.
We need to do a registry tweak to get it working.
We were trying to launch a batch file from custom command because we want to launch a java program whenever a custom command is sent from the mobile server.
We are also successful in launching a java program directly without using cmd.exe as following:
<c:set var="j9_home" value="\\IBM\\WECE\\WM60\\PRO\\ARM\\FOUN11\\bin\\"/>
<c:set value="${System.Execute (j9_home+"j9w \Test\HelloWorld")}"/>
This works fine and it launches the HelloWorld java program on windows mobile 6 prof emulator.
The problem is that it does not work if the j9_home point to a folder path which contains spaces
ex <c:set var="j9_home" value="\\Program Files\\IBM\\WECE\\WM60\\PRO\\ARM\\FOUN11\\bin\\"/>
Is there is a workaround available to get it working ?
We have to re-install the j9 to a folder whose folder path does not contain spaces to get it working.

Similar Messages

  • Create biar file with command line for link universe

    Hi
    I am using boxi 3.1 and I am trying to create 2 biar files with the command line
    One file for " main" universe and it's reports and another is for a link universe and it's reports
    The problem that on "main " biar file that been created , the link universe and it's reports also appear in it.  Even so in the queries only the relevant objects are selected
    I try to remove from the properties file the parameter 'exportDependencies=true ', and then when I check the xml of the biar I so that the link universe and it's report no longer appear. But when I importing the file I receive the error message 'Required dependencies not found on target system : '[ARgp0DCiBRBOsL3EHYQaHBY, AdfkNagAE59Nsbazh40nwTU]'
    Does anyone have an idea what I need to do , in order to see in the main biar bust the main objects?

    I have done it before on BOXI R2 with the IW, and it works fine
    But any how, this is the way that we have to work with, since it is part of a customer product and the link universe and it's reports  is an additional part of the product.
    So is there a way that I can pull just the main universe and it's reports?

  • Resetting the id of dynamically generated JSF custom command link

    I have a java faces page which displays data from an arraylist.
    This list is populated when user inputs data in the input text field and clicks "Add Group" button.
    The arralylist consist of another arraylist within the former.
    I have created a custom command link for the former arraylist.
    As an user can add data to the arraylist so can he remove it from the arraylist.
    The command link has a method binding "closeTask" which is invoked when command link is clicked.
    This action removes the clicked element from the arraylist and displays the fresh list.
    The key field from the bean in the former arraylist is set in request, and is retrieved in the "closeTask" method to be assigned to the command link output text id (i.e. it identifies the element that is to be deleted from the arraylist).
    This functionality does not work as expected, i.e. command link component is not created/rendered during deletion as it is created while addition.
    As a result eventhough the element is removed from the arraylist, the id corresponding to the fresh arraylist is not refreshed and for further actions correct id is not passed and the deletion function does not work.
    How can I have resolve this problem?
    The sample code is included.
    Thanks in advance.
    Java Faces Code:
    <%
    FacesContext facesContext = FacesContext.getCurrentInstance();
    Application app = facesContext.getApplication();
    Bkbean bean = (Bkbean)app.createValueBinding("#{bckbean}").getValue(facesContext);
    List aList = bean.getAList();
    if(aList!=null && aList.size()>0) {                                                            
    for(int i=0; i<aList.size(); i++) {
    ABean abean = (ABean) aList.get(i);
    int keyValue = abean.getKey();
    request.setAttribute("key", String.valueOf(keyValue));
    %>
    <TR>
    <TD width="90%">
    <%=abean.getCtg()%>
    </TD>
    <TD width="9%">
    <%=abean.getKey()%>
    </TD>
    <TD width="1%" align="right" valign="top">
    <h:commandLink binding="#{bckbean.commandLnk}" styleClass="commandLink">
    </h:commandLink>
    </TD>
    </TR>
    <%
    List dList = abean.getDList();
    if(dList!=null) {
    for(int j=0; j<dList.size(); j++) {
    String tData = (String) dList.get(j);
    %>
    <TR>
    <TD width="90%">
    <%=tData%>
    </TD>
    <TD width="10%" colspan="2">
    </TD>
    </TR>
    <%
    }%>
    <%
    %>
    <TR>
    <TD align="right">
    <h:inputText id="inputtxt001" value="#{bckbean.val}"></h:inputText>
    </TD>
    <TD align="left" colspan="2">
    <hx:commandExButton type="submit" value=" Add Group " styleClass="commandExButton" id="submitbtn001" action="#{bckbean.addVal}">
    </hx:commandExButton>
    </TD>
    </TR>
    Backing Bean Code:
    public void closeTask(ActionEvent event) {
    String key = "";
    UIOutput lnkTxt = null;
    UICommand comp = (UICommand)event.getComponent();
    if(comp.getChildren() != null && comp.getChildren().size() >0) {
    for (int i=0; i<comp.getChildren().size(); i++) {
    lnkTxt = (UIOutput)comp.getChildren().get(i);
    key = lnkTxt.getId();
    int selectedKey = (new Integer(key.substring(2))).intValue();
    if(aList!=null) {
    for(int i=0; i<aList.size(); i++) {
    ABean abean = (ABean) aList.get(i);
    if(abean.getKey()==selectedKey) {                                             
    aList.remove(i);
    break;
    public UICommand getCommandLnk() {
    String id = (String) request.getAttribute("key");
    UICommand commandLnk = new UICommand();
    commandLnk.setId("key" + id);
    UIOutput outTxt = new UIOutput();
    outTxt.setId("id"+id);
    outTxt.setValue("X");
    commandLnk.getChildren().add(outTxt);
    MethodBinding mb = app.createMethodBinding("#{bckbean.closeTask}", new Class[]{ActionEvent.class});
    commandLnk.setActionListener(mb);
    commandLnk.setImmediate(true);
    return commandLnk;
    }

    You cud define jsObjectNeeded and onClientClick properties for the htlm component and catch the event to find itz ID.
    This might help you:
    Accessing HTMLB form values from JAVASCRIPT
    To give you an idea abt how the code works:
    Portal: Bug in the  radio button's javascript api
    Regards,
    N.
    Plz click a star if it helped.

  • How to force a Custom Layout in the links sent by e-mail ?

    Hi everyone,
    For customizing the final user´s view for Discussion Groups,
    I created a custom Layout Set "myDiscussionGroupsContributor"
    that references a custom Collection List Renderer
    "myDiscussionGroupWithoutTopicsContributorCollectionListRenderer"
    that references a custom Command "my_join_discussion_thread_contributor"
    that has a custom Layout Set assigned "mySingleDiscExplorerContributor".
    When accessing the discussions via the final users it works fine
    (I´ve already corrected the "Back" link problem acording thread
    problem with discussion group contributor iview)
    The problem is that when I send a discussion via e-mail
    to another user using the "send to" command,
    the received link opens the discussion using the default
    "DiscussionGroupsContributor", in fact, the e-mail´s HTML code
    contains the property "rndLayoutSet=SingleDiscExplorerContributor"
    as noted in the following href element:
    href="http://myportal:50000/irj/servlet/prt/portal/prtroot/
    com.sap.km.cm.navigation/discussiongroups/
    80b935d9-90a8-2810-17a6-c88c15fd350b/
    324e1175-98a8-2810-16a2-ee1c1f9c54bc.dsc?
    StartUri=/discussiongroups/80b935d9-90a8-2810-17a6-c88c15fd350b/
    324e1175-98a8-2810-16a2-ee1c1f9c54bc.dsc&
    rndLayoutSet=SingleDiscExplorerContributor&scHeight=300&
    scWidth=220&scPostListWidth=500" target=_blank
    The same happens with the link in the subscriptions list.
    Does anybody know how to set the layout in these links ?

    Hi all,
    I solved the problem, so here I post the steps for the solution I found.
    1) Modify the Object Type Definitions:
    In the CM Repository there is a folder root > etc > oth.
    There you have to change the LayoutSet settings in the following files
    (I don´t know if it is necessary to modify all of them):
         - discussion_post.oth
         - discussion_topic.oth
         - discussion.oth
         - discussiongroups_items.oth
         - discussionPostType.oth
         - discussionType.oth
         - dscGroupsCollType.oth
         - dscGroupsItemsType.oth
    2) Then you have to reload de OTH settings:
    In the Content Management configuration (System Administration >
    System Configuration > Content Management)
    go to User Interface > Debugging Settings and edit the configuration.
    Add your user id to "UI Superusers" then enable
    "Enable Rendering Information" and save.
    Then go to a KM and clic on "Rendering Information"
    (If the link doesn´t appear, refresh your window).
    A new window opens, clic in "OTH-Overview"
    and then in the new window click on "Reload".
    Finally close all popup windows and go to the
    Debugging Settings again to disable the checkbox
    "Enable Rendering Information"
    For further information you can read:
    http://help.sap.com/saphelp_nw04/helpdata/en/02/e4e25538f7274eb08b317751f2f04b/frameset.htm
    and
    http://help.sap.com/saphelp_nw04/helpdata/en/f4/2c6b2089cc784bb384a7ea058de50d/frameset.htm
    I hope someone find this thread useful.
    Daniel Sacco

  • Linking Questions cs5: Linking within the Same file, Sharing links, file size bloat

    I have to make print cards for my job. Print cards being a 1 page version of the Larger package layout that the place I work manufactures. On this print card is a section for customer info on top, and the print representation on the bottom. What I've been doing is using two files. The first file is the full-scale art on one artboard, and the customer info on the second artboard, but both within one file.
      On the second file, I combine the two. I still use two artboard because it's a front and back print-off. The front page (1st art board, 2nd file), is the customer info at the top (linked from the 2 art board, 1st file) and the full art shrunk to fit below (also linked).  the back page (2nd art board, 2nd file) is the individual elements of the artwork, zoomed in for easier viewing. For the second page, I use masked links from the fullsize art, sized appropriately. The reason it's important that they all use links, is so if I update the art, it will update the print cards as well.
      I've been trying to stream-line this process. This works ok, but the numerous links bloat the file size, and I have to email these to customers. I've started using "Flatten Transparency" on all my Print cards (2nd file) and saving it as a separate .pdf. This cuts out the links, but then all of my masked images are hiding the whole original file behind their mask. So then I started manually cropping each individual masked area, which helps, but once I've gone through this whole process, I don't think I've saved any of the time my template was supposed to save.
    file://localhost/Users/troubleinthemaking/Desktop/PRINT%20MINI%20EXAMPLE.pdf
      My questions are these:
    Is there any way to link to elements within the same file? Like from a different artboard?
      I've successfully 'Placed' an artboard from the same file, back into that file (but a different artboard), but this creates a never-ending Save/Update loop. I'd like a better way to do this.
    Is there a way to have all instances of a linked file, draw from the same place? i.e. When you update a single link, all instances of that Link would update. plus this would, in theory, cut down on the file size.
    Is there any way to automatically have every masked link crop itself after using the flatten transparency command?
      Even if I had to select them first. I haven't had any luck selecting them all and then using the pathfinder crop tool. I've had to do each one individually.
    I know this last one can't really be answered without seeing everything on my machine. I don't even know what info I'd need to give...
    WHY MY FILE SIZE SO BIG!
    Thanks ahead of time.
    -Jefferson

    Jefferson:
    There's a few things you can do to make your files smaller, such as using the Action "Delete All Unused Panel Items" which will removed all unused Symbols, Graphic Styles, Brushes and Swatches from your Illustrator files. Those little items add up to bloating a file.
    You also need to examine the images that you place into your Illustrator file. Any unnecessary layers or channels? Can the files be flattened before being placed in Illustrator? You can always keep a "working" Photoshop file of all that extra goobledeegook and then flatten the file and do a "Save As" and place that in the Illustrator file. And that could be a Photoshop EPS saved with a TIFF Preview and JPEG Encoding (Maximum Quality), which will save some MBs.
    But, you should never sacrifice file size for quality. If these files are going to print, you should be using an FTP program to transfer the files and not email them. Email should not be used for files over 5 MB. If all you want to do is send the customer a Low Resolution PDF Proof for approval via Email, that's fine and dandy, but send the final large size files to the Printer via FTP.

  • Where we can use ClearUserInput - Java Custom command?

    Hi,
    Where we can use ClearUserInput - Java Custom command? If anybody has used this command please let us know the respective scenario in detail.
    Thanks

    Clear user input—Clears user-input values and returns to the original calculated or loaded
    value. The following code retrieves baseline loaded values
    ConstraintSolver.MyRule.classname=com.interlacesystems.rules.ClearUserI
    nput
    ConstraintSolver.MyRule.description=Clear Measures from DriveDemand cube
    ConstraintSolver.MyRule.Cube=DriveDemand
    ConstraintSolver.MyRule.Measures=MS DEMAND,MS DRIVE DEMAND
    In this example, the classname is com.interlacesystems.rules.ClearUserInput
    and the parameters are cube and measures.
    This is input into the \custom\config\site.properties file and invoked from an isadmin command alter system solve constraint using rule "MyRule"

  • "Could not complete the custom command because the ICC profile is invalid"

    I got the above message when I attempted to soft-proof an image in Photoshop CC on Windows 7 64-bit. 
    I had downloaded the ICC profile from drycreekphoto.com, specifically:
    http://www.drycreekphoto.com/icc/Profiles/IccFiles/Arizona/Costco-AZ-Tucson-NW-Lus.icc
    and installed it by right-clicking on the downloaded file and selecting "Install profile"
    Windows installed the profile in the following directory:
    C:\Windows\System32\spool\drivers\color
    Then in Photoshop CC, I did
    View -> Proof setup -> Custom
    But when I selected the above profile from the dropdown list, I got error message
    "Could not complete the custom command because the ICC profile is invalid"
    Does this mean that the profile is really invalid, or am I doing something wrong?
    FYI I am new to color management.  This was my first attempt to soft proof an image.

    I can't quite figure out how it got that way - it has part of an ICC profile structure, but quite a bit wrong.  Even debugging tools can't read it as an ICC profile.
    It's probably the one file - let drycreek/costco know so they can replace it.

  • Custom command problems on Mac OS X

    I am seeing a problem with custom context commands in our custom connector that is also reproducible with the sample FTP connector shipped with the SDK.  I am using Adobe Drive 3.2.0.41 on Mac OS X 10.8.2
    For my test I am connecting to a FTP server and attempting to run the "File Properties" command from a file's Adobe Drive menu in Finder.  When I first start Drive and connect, the command works and the "File Properties" dialog appears as expected.  However, if I disconnect, reconnect, then browse back to the file and attempt the command again, the File Properties dialog does not appear.  The Finder window does kind of "grey out" as if another dialog is about to be shown, but it never is. I don't see any kind of error messages in the CS5ServiceManager logs. 
    If I disconnect, close Drive, kill the AdobeDriveCS5 and CS5ServiceManager processes with Activity Monitor, and then restart Drive and reconnect, the custom commands work again.
    Has anyone else experienced these kinds of problems with custom commands on Mac OS after a disconnect/reconnect cycle?
    Thanks,
    Brian

    Our only other environment we could set up was on Mac OS 10.7.5, and we could not reproduce the issue.  Based on that it would appear to be something new with Mac OS 10.8.

  • Consolidate linked files in multitrack?

    Is there an easy way to consolidate all of the linked files referenced in a multitrack document into a single folder, something like the "package" function in inDesign?

    In previous versions of Audition, yes, but not yet in this version.
    I know you're probably trying to avoid this sort of work, but here's how I'd do it in this version of Audition.
    With only one Session Open, choose File > Close Unused Media (this will close any media files that aren't referenced by that session)
    For each of the files in the files panel
    right-click and choose "Reveal in Explorer" aka "Reveal in Finder" (Win vs Mac), this command should also be in the File menu
    copy or move the desired file into the new folder of your choice
    Close all files in Audition
    Copy or Move the Session file to the folder used above
    Reopen the session in the new location
    Save the session.
    Note: The SESX (session) file stores both absolute paths to your files as well as relative paths for the referenced media files.   I can't remember off the top of my head which one it looks for first, but it will use one or the other as a fallback.   If it can't find the files in either of those locations (you can just open the SESX file in a text or XML editor to see where it is looking) it will look in the folder that the SESX is in as a fallback to those.   That is the reason why I was suggesting resaving in Step 6.   You can also see where Audition found the files by looking in the Files Panel in Audition after you've opened the session.   Just scroll the panel all the way to the right and you'll see the file paths.
    If you don't need to save effects and stuff like that, there's an alternative, but sketchy way to archive stuff and that would be to export the session as an OMF file with encapsulated media.   This will store the actual audio data into one big file.   However, I saw sketchy because there's a lot of caveats to that method (too numerous to list here).   But it would work for simple sessions.
    For the purposes of feature development in Audition, what do you like about the Package workflow in InDesign; how would you expect it to work in Audition?

  • Command Line Parameter in File Adapter in SAP PI

    Hi
    Can any body explaine me what is the purpose of 'Command Line' parameter in File Adapter (Sender/Receiver).
    Regards,

    Hi,
    Refer below two links for more help!
    SAP XI File Adapter OS Command Line Feature     
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/sapXIFileAdapterOSCommandLine+Feature
    More with the File Adapter      
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/morewiththeFileAdapter
    Regards,
    Jilan

  • When I click to open anything I get a box saying open link in new window, open link in new tab, download linked file etc.  When I go to close anything I get hide toolbar, customize toolbar.  It takes  3-5 clicks and it will finally close.

    When I click to open anything I get a box saying open link in new window, open link in new tab, download linked file etc.  When I go to close anything I get hide toolbar, customize toolbar.  It takes  3-5 clicks and it will finally close.

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Picture Manager with command line for Bat files

    Hello 
    I am wondering if Microsoft Picture manager has any command line switches i could use.
    I resize thousands of photos weekly using Picture manager for a semi automated process. The resize is the part that is not automated. For some reason when using image magik the resize is done but it does not accept some images where i upload them, yet if
    i do it in parallel with Office picture manager the Microsoft re-sized always work. 
    The process uses VB Access, downloads all images changes the extension from one card extensions to jpg and ammends the name. sorts the images to two folders.
    Then i resize as a batch manually. Not difficult but needs hands on and have you tried changing the dimensions in picture manager when all are selected. tedious!
    Then the final bat uploads to correct locations. 
    So my question, how to use command line with Microsoft picture manager. If not command line Powershell. I can not beleive that the program can not be opened specifying a folder and resize image dimension to use. I cant see the source code where i believe
    it would be apparent to me how to do so.
    Thank you
    Sometimes the answer is so blindingly obvious i fail to see!

    I have done it before on BOXI R2 with the IW, and it works fine
    But any how, this is the way that we have to work with, since it is part of a customer product and the link universe and it's reports  is an additional part of the product.
    So is there a way that I can pull just the main universe and it's reports?

  • Custom command set problems

    Hi,
    I am having some problems with my custom Avid based command set.
    I have had the "A" and "S" keys assigned to "Go to prev/next edit" to simulate Avid but want to change it to "Up" and "Down" which does pretty much the same in the timeline but allows me to go to next/previous clip in the list view as well.
    The problem is that every time I try to assign the "Down" command to the "S" key the .commandset file gets corrupt and the next time I start fcpx it freezes at "Restoring the window layout".
    I can assign it if I make a completely new command set.
    Can anyone see if they can recreate this? My commandset file can be downloaded here: http://dl.dropbox.com/u/6196177/Avid.commandset
    I have a norwegian keyboard if that matters...
    Thanks!

    OK, then it has do be something specific with my command set. I've recreated my problem several times: Start fcpx, works fine, quit, take backup of preferences file. Start fcpx again, works fine, switch to custom command set, works fine, quit, restart of app fails... revert to backed up preferences file, works fine...
    What could it be in my command set then? I've tried recreating the setup I use in Avid. The thing is that it works just fine until I quit and restart the app... Really annoying!
    Thanks for your answer though!

  • Exporting linked files into published .exec

    I have a problem in exporting any linked files I have added
    as click boxes into the published .exec file.
    In my project I have linked HELP pages where relevant and
    inserted the URL link into the click box. It all works great when I
    am on my network, but once off, the linked files are not there.
    When publishing the project, a popup box says that I need to
    &quot;copy all referenced files and projects with their
    corresponding HTML files to the output folder&quot;. But I do
    not know how to do this.
    HELP
    Cheers

    quote:
    Originally posted by:
    Captiv8r
    All that dialog is telling you is this:
    You have created links to other content. This content may be
    a simple URL, Word Document, PDF, etc. Captivate is not going to do
    anything to ensure those files exist when you copy the Captivate
    files to wherever you will run them from. So be sure you take care
    to copy the linked content to the locations where the Captivate
    output will expect to find them. Otherwise, the links are going to
    fail!
    Hopefully this was helpful... Rick
    Rick -
    Let's revisit this question, please?
    In my scenario, I created a button linking to a PDF reference
    file. I put the file in the same directory as the final Captivate
    published .exe file. The problem is that Captivate is holding onto
    the logical path to the file, which works great if everyone is on
    my network or computer.
    No matter what you do, once you take those files off your
    computer/network and hand them to a customer, any links to local
    file contained on the delivery medium is broken.
    For example, the .exe, reference PDF, and menu are burned to
    a CD and delivered to the customer. and the customer is running the
    .exe but when he attempts to open the PDF, nothing happens. Of
    course, I pop the CD in and it works great for me - because I can
    see the path to the published location, prior to burning the CD.
    We notice that accomplishing the same action in the menu
    builder doesn't produce the same result: The user can open the file
    contained on the delivery medium just fine. That code seems to
    recognize the virtual path rather than the logical one.
    I think this is a bug in the software. Captivate is designed
    to be able to publish standalone files. By definition, standalone
    means that the links to external files should not be dependent on
    the hard path.

  • How to envelope distort a linked file ?

    in the perspective grid command. I am able to create rectangles, but is there a way in which I can place a linked file in the perspective grid. if not then how to align the linked file to a rectangle placed in perspective grid

    Manish,
    What happens if you create/fit a nostroke/nofill rectangle on top of your linked image, then Group them and try again?
    You may ClickDrag between opposite corners with the Rectangle Tool (Smart Guides are your friends).

Maybe you are looking for