Open file in a folder

if i have a powerpoint file myfile.pps and i saved in a folder of any folder name in the f:// directory, how do i execute the file? Using this following codeRuntime.getRuntime().exec(new String[] {"cmd /c start", "f:/myfile.pps"});thanks

@OP: Are you the same as the person in this thread:
...Never mind you must be.
All you need is in the File class:
http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html
and especially this method:
http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#listFiles()
which will return an array of File objects which represent the file and directory listing of a particular folder (use it on you F:/ folder!). Iterate over that array and if you encounter a directory (use File's isDirectory() method) you can inspect that directory for the existence of your pps file.

Similar Messages

  • HELP. ............Hi folks hope some one can help me please.Having a problem in Bridge I open my images in ACR,  as I open files in a folder and lets say they are labeled in yellow  they are all going back to  the camera raw default , in other words no ma

    HELP. ............Hi folks hope some one can help me please.Having a problem in Bridge I open my images in ACR,  as I open files in a folder and lets say they are labeled in yellow  they are all going back to  the camera raw default , in other words no matter what work I have done, inc cropping they  all go back to ,as they came out of camera. What on earth is happening? I am on PS CS6. I might point out everything was working normally up to  yesterday, when this first started.
    I recently changed computer to 64bit from 32bit, not sure if this causing  the problem or not. Any help would be appreciated.

    Robert,
    Would you be so kind to rephrase your question with concise, precise information and without any "let's say that" hypotheticals?  Sorry, I can't quite follow you.
    Also please give exact versions of Photoshop CS6 (13.what.what), of Bridge and of your OS.
    Thanks.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • I need to open files in a folder within a photoshop action

    I am writing an action (to be triggered by automator) to take three photos from a tethered camera and open, size, and crop them, and place them in specific locations on a template image to create two photo-booth strips side by side on a 4x6 print.  It works perfectly, but when I write the "open" command into the action, it referenced the files by name.  I need to find a way to have my action open the three files in a folder (the only three that will be there thanks to my automator action), but not reference them by name.  Is there any way of opening images in an action without referencing them by name?  Maybe some sort of open images in a folder type of thing?  Any ideas are very much appreciated.
    ---Dan

    I have played with the >>Toggle dialogue on/off<< field and manually opened the files from their folder, but the action has the file's location written into it.  I need it to open all files in a folder.  As part of my Automator action, I am moving my photos (taken in batches of 3) into a workflow system of folders so the photos from the camera save to a "from camera" folder, and then move to a "for photoshop" folder, and those are the images that open into the ps action and get put into the template.  The action saves the composite image to an archive folder, and deletes the image layers, and then the Automator action moves the originals to another archive folder.  There shouldn't be issues as long as the actions keep running and I can figure out how to open files form a folder without referencing the specific images in the folder.  Also please keep in mind that I am writing this as an action witihn Photoshop CS3, so basically clicking record, and letting the computer write the "code".  Did that help?

  • How to systematically open file in a folder and process them with a program

    Hello,
    For my second question of the night.
    I am wondering if there is a way to open every file in a folder, run them through a vi, and then append the output to an array or spreadsheet? This would save me lots of time and my wrists.
    Thanks
    Solved!
    Go to Solution.

    Hi,
    Yes you can open a file in the folder by using 'List folder' function (Programming>File I/O>Advvanced File Function>List Folder) which lists all the files and folders in the given path. From that you can build the path and give to 'Open File' function.
    Hope this helps you. Let us know this solves your issue

  • Open file in 'Bridge' folder from Illustrator Script. How? (Mac)

    I need to access a file in the Bridge directory, from a script in Illustrator. I can do this already for PC with a concrete reference like this:
    var loc = "C:/Program Files/Adobe/Adobe Bridge CS3/webaccesslib.dll"
    How do you construct a string to get at it on a Mac?
    thanks,
    -J

    Sorry, I misunderstood your question, I didn't realize you were looking for a specific file.
    I was going to suggest getting the path to the application and adding '/Contents/MacOS/webaccesslib.bundle/Contents/MacOS/webaccesslib' to get to the file, but I don't see a path property for the application in Bridge. Seems like a ridiculous oversight on Adobe's part, seeing how the other applications can return the path to themselves.

  • Open file in the right folder...

    Hello
    I don't understand why when I run form builder and try to open file, don't open file in start folder.
    example if I run from command line
    c:\frmld.exe
    sometimes when I open file, the open folder is "c:\" but sometimes is "c:\something else"
    Thanks
    OS Windows XP SP3
    Form Builder 10.1.2.0.2
    Edited by: user6558862 on 8-apr-2009 7.46

    Hello Andreas thanks for you interest
    I must say that I work in very restricted client: I'm not administrator but simple user on my desktop (Win XP SP3) and there are a lots of settings and services that I don't know and I can not change or stop.
    I work on different environment: Development, QA, Production of a ERP also there are four release for year and "2 year support", that means 24 "similar worlds". For every "worlds": db schema, password, library, form folders and everything you could imagine are different.
    For this reason when I open a form I need to change a lots of things so the system administrator made a batch file to start Form Builder with right environment settings but the form folder was not right when open file from Form Builder
    I hope that you understand me and my English (I'm Italian)
    Ciao

  • Applescript open file in hidden folders

    When a folder is made visable and finder is reset  then activating applescript to open file in folder, the once hidden folder but now visable in finder doesn't appear.
              do shell script "defaults write com.apple.finder AppleShowAllFiles False"
    -- kill Finder to make the changes active
    do shell script "killall Finder"
    then activate Applescript Editor and open file and the folder but folder will not appear.

    Aha, this seems to work, but I'm not sure why:
    set the_file to (choose file) as text
    tell application "Adobe Photoshop CS5"
        open file the_file
    end tell

  • Open file(including external file) problem on Lion

    I have a problem with AppleScript on Lion (OS 10.7) and cannot know what to do...
    I'd like to open an alias file which has some external files. (For example, adobe illustrator's .ai file with some .png or Logic Pro file with audio files) But I cannot do it, it was working perfectoly on Mac OS 10.6. It seems file system had changed on Lion....??
    Opening normal file on Lion >> it works.
    tell application "Finder"
      activate
              open file "test.rtf" of folder "scriptTest" of folder "Desktop" of home
    end tell
    Opening an alias of normal file on Lion >> it works.
    tell application "Finder"
      activate
      open file "testAlias" of folder "scriptTest" of folder "Desktop" of home
    end tell
    Opening an file with external files on Lion >> it works.
    tell application "Finder"
      activate
      open file "testWithImagefiles.ai" of folder "scriptTest" of folder "Desktop" of home
    end tell
    Opening an alias file with external files >> it works on 10.6 but NOT on Lion, just open the window ...
    tell application "Finder"
      activate
      open file "testWithImagefiles.ai" of folder "scriptTest" of folder "Desktop" of home
    end tell
    Is there any idea? 

    I'm not sure what the problem here is - your statement that it "just opens the window" doesn't mean much.  opens what window?  a FInder window? an new illustrator window? a window in your living room? (the last would be very cool, mind you...)
    at any rate, I think the problem is in some confusion over the word 'alias'.  In applescript, alias just means any file system referent: e.g. alias "HD:Users:yourname" is a path specification for your home folder.  file system objects that point to other file system objects are referred to as alias files.  so try one of these two versions instead:
      -- using alias file directly
              open alias file "testWithImagefilesAlias" of folder "scriptTest" of folder "Desktop" of home
      -- resolving alias file first
              open original item of (alias file "testWithImagefilesAlias" of folder "scriptTest" of folder "Desktop" of home)

  • How do I open a file from a folder, process it, then open the next ?

    I have a folder full of items. I want to open the first item which is a 3d file, process it with the 3d application -- by automating the mouse clicks, then save the file, then go do the same with the next file in the folder. I see an item called open folder contents and open finder items, but it just opens them all at once.
    Thanks for any help.
    Dan

    Having a little trouble with this as it only runs once even with the loop.
    I open a folder full of files dispense them, then do a watchmedo action then loop at the end. But it only does the first file. Any hints?
    Thanks,
    Dan

  • Open file & close folder that it's in - in one step

    I want to be able to double click a file to open it and then the folder this file is in closes so that it is no longer open on my desktop. Is there a one step way to do this?

    Yes.
    Hold down the Option key while double-clicking the file.
    This also works when opening sub-folders - the double-clicked folder will open and its enclosing folder will close.

  • Open Random File in Random Folder

    I am trying to make an Applescript to pick a song at random, being dependent on how many files are in a folder. To simplify my example: I have 2 folders labeled "Rock" and "Country", Rock includes 99 songs and Country has 1. If I write the following script:
    to application finder to open some file in some folder "harddrive:user:me:music"
    Using this, there is a 50% chance that 1 country song will play, because the script is choosing between "Rock" or "Country" THEN the files inside. Is there any way that I can re-write the script so that it accounts for the number of files inside the folder?
    I only have a beginners level of writing script, so if you can dumb any complicated answers down for me that would be great
    Eventually I want to expand this for more than two folders, but I'm sure if I get 2 down I can extrapolate to more!

    Whoops, sorry: didn't notice that it returned a list of lists which need to be concatenated.  This version works correctly:
    set musicFiles to {}
    tell application "System Events"
              set musicFolders to every file of (every folder of folder "/Users/tedwrigley/Test area") whose visible is true
              repeat with thisItem in musicFolders
                        set musicFiles to musicFiles & thisItem
              end repeat
    end tell
    set theChosenFile to some item of musicFiles

  • Folder appears in Windows Explorer, but not in the Open File dialog

    Hello,
    I hope this is the right place to post this. If not, please let me know where is.
    A friend just showed me a weird problem he is having with his computer. He is using Windows 7 pro, and has a folder under My Documents, in which he keeps his work files. He emails these files using Gmail, which he accesses via Internet Explorer.
    All worked fine until a few days ago, when he noticed that when he clicked the link in Gmail to attach a file, his folder wasn't listed in the Open File dialog. He looked in Windows Explorer, and could see the folder OK. I tried opening Word and using the Open
    File dialog there, and the folder wasn't visible.
    If he clicks in the address bar, and adds the folder name to the path, it opens the folder, but shows it as empty. I actually has two subfolders. If he adds the name of a subfolder, then the Open File dialog shows the files in that folder.
    I checked the permissions on the folder, and couldn't see anything odd. What I don't understand is how the folder can be visible in Windows Explorer, and not in the Open File dialog.
    Anyone any ideas? Thanks
    FREE custom controls for Lightswitch! A collection of useful controls for Lightswitch developers.
    Download from the Visual Studio Gallery.
    If you're really bored, you could read about my experiments with .NET and some of Microsoft's newer technologies at
    http://dotnetwhatnot.pixata.co.uk/

    I can confirm - I'm having the exact same problem.
    When I try to lookup or save a file from an IE file dialog some folders do not show up. I can type the folder name into the directory field and it then goes there, but this assumes you know the directory name and it's a PITB.
    Firefox can browse to the directory directly.
    It would be interesting if anyone else found a fix for this - I'll post here again if I find out more somewhere else, but there are not too many threads out there as far as I have found for now.
    Found a solution over at answers at Microsoft dot com. (can post links here yet - will update once I can)
    In short: There's a fast fix for this issue by resetting a hidden flag that IE sets for some folders. I believe this part of the "protected mode" feature, though I can't confirm and also have no idea how this would protect me from any intruders,
    if only (unimportant) subfolders are protected ...
    Anyway - if you know the name of the missing folder (e.g. from browsing the directories form windows explorer): in the parent directory that has the folder missing do a Search (in box at top right) for the missing
    folder name. In my case the hidden folder shows up in the search - now right click -> Properties -> clear hidden flag. Note: this "hidden" flag is independent of the flags set in windows explorer - that's why you have trouble going there with IE and not
    the file explorer from the desktop.

  • How do I set the default folder for file - open file... ?

    When I save a file, photo, etc., the default folder for OPENING a file becomes the last folder I SAVED to - even after closing and reopening Firefox. Is there a way to maintain the same default folder for opening files?
    Thanks.

    Originally posted by: kwarner.uneedspeed.net
    Well... I found over 200 bugs none of which seemed to talk about setting
    the default folder. I probably missed the relevant bug in the spew.
    I ask a question here as a last resort -- after I've done what I think
    is an appropriate search for answers.
    But thanks for your help in any case.
    Daniel Megert wrote:
    > DemonDuck wrote:
    >
    >> When I need to open a file not in the workspace, I use File -> Open File.
    >>
    >> But the default folder it opens is in C:\Documents and
    >> Setting\Administrator
    >>
    >> I would like File -> Open File to first open in someplace more
    >> reasonable -- like the workspace.
    >>
    >> How do I set the default folder for File -> Open File ????
    >
    >
    > Is your '?' key broken? Check bugzilla there's a feature request
    > regarding your question.
    >
    > Dani

  • How can I OPEN files I just downloaded? They're on the DOWNLOADS screen of Firefox but I can't open them even after double-clicking? And they're not on the FOLDERS as well. I tried RIGHT-CLICK and the "open dowloading folder" or something does not work! P

    How can I OPEN files I just downloaded? They're on the DOWNLOADS screen of Firefox but I can't open them even after double-clicking? And they're not on the FOLDERS as well. Even the right-click is not working ... the "open containing folder" does not work.
    == This happened ==
    Not sure how often
    == ALWAYS! ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)

    Open Containing Folders is never active.

  • Automate Batch, open every 3 files in a folder?

    I'm doing some work where I mostly do the same things on three files. It's for a game-project and I've got one texture for shadows, one that's the normal diffuse layer and finally one that controls where team-colors go. I've learnt some things about the Actions-tab and can easily open all three files then click F2 and Photosohp CS4 does all the work. Then I simply save the file.
    I was checking with the the Automate -> Batch option if I could do this for an entire folder but I've ran out of luck. It's easy enough with the destination, I just add a prefix to the file-name so it doesn't overwrite anything. However as I see it it's only possible to open every file in the folder after each-other. Is there a built-in feature or can I change the Actions a little to help me with this? The Actions I'm doing is mostly "Select Previous Document" etc. when I've got all three files open.
    Failing in that is there a plugin or something anyone can recommend? If it helps the file-names are identical except for a "_diffuse", "_occulusion" and "_team" at the end so if there's a plugin or even feature that relies on the file-names that would work too. Otherwise this also means the three files are always after each-other in the same order.

    You should look into Scripting for Photoshop (preferably with JavaScript), because what you are describing is not within reach for plain Actions as they can incorporate no conditionals.
    »Adobe Intro To Scripting.pdf«, »Photoshop CS5 Scripting Guide.pdf« and the Sample Scripts (should all have been installed with Photoshop) offer a starting point and one can always ask for advice on the Photoshop Scripting Forum:
    Photoshop Scripting
    What exactly are the automated steps for the three different »types« of images?

Maybe you are looking for

  • PDF is not dynamic in WebDynpro

    Hi, I designed a pdf form in standalone adobe designer 7.1. I saved the file as DYNAMIC pdf. When I test the form standolne the form works. I have a WDJ with a view, which contains an Interactive Form element. I linked the dynamic pdf to the designer

  • BITC Timecode in Final Cut Pro 4.5

    Does anyone know how to create burnt in timecode to a rough cut edit to show my clients. I am sure this is straight forward. Please help!!! Dual 2.0 G5   Mac OS X (10.3.9)  

  • OS X email setup

    How do I set the OS X mail program to use my Comcast email address? When I click a "send email" link on a websight, the OS mail program pops up to be configured. I do not know the information it is asking for. I just want to use my Comcast email acco

  • ORA-00904 with bitmap indexes

    Hi, I'm running the following query: SELECT FLOW.PRODUCT_CODE, FLOW.CUSTOMER_SK, FLOW.BRAND_SK, 26, FLOW.MPR_SK FROM      RSB_FACT_FLOW_SD          FLOW, RSB_DIM_FLOW               DIM WHERE      FLOW.FLOW_SK     = DIM.FLOW_SK AND     DIM.FLOW_ID    

  • E17genmenu exits with symbol lookup error

    e17genmenu gives me this when used: [proteus@localhost ~]$ e17genmenu Checking For /usr/share/applications...Exists Checking For Files In /usr/share/applications Found: abiword.desktop Getting Eap Name Parsing Desktop File /usr/share/applications/abi