Command to Open Folder in Windows

Process j = Runtime.getRuntime().exec("c:/windows/explorer.exe");That will get windows explorer up, but how do I get to a certain folder location?

Java 1.6+..
import java.awt.Desktop;
import java.io.File;
class OpenJavaHome {
  public static void main(String[] args) throws Exception {
    File dir = new File(System.getProperty("java.home"));
    System.out.println(dir + "  is directory: " + dir.isDirectory());
    Desktop.getDesktop().open(dir);
}

Similar Messages

  • Is there a command for opening next plug window?

    I'm looking for a way to change the open plug in window without using the mouse. For example, so that I can switch between tuner and Guitar Amp Pro in a channel strip.

    You could use screensets for that. To my knowledge there's no KC for what you want to do...

  • How to get default command to open a terminal window? (Bash or Python)

    Desktop entry files (.desktop files) may indicate that an application requires a terminal window to run ("Terminal=true"), e.g. vim & maxima.
    How does a .desktop launcher determine which terminal to use? E.g. when opening a file associated with vim, what points it to 'urxvtc -e %s' or 'gnome-terminal...' or whatever?
    Is there a standard environment variable with the terminal command? $TERM only contains an identifying name but I don't see how to programmatically deduce the command from it. Grepping through the output of "set" doesn't show me anything useful either.
    My search-fu has failed me. Does anyone have any ideas?
    EDIT: Clarified subject and post.
    Last edited by Xyne (2011-02-02 14:00:14)

    Maybe my search-fu can be of help here:
    For KDE:
    terminal=$(kreadconfig --file kdeglobals --group General \
    --key TerminalApplication --default konsole)
    For GNOME:
    TERM_EXEC_KEY="/desktop/gnome/applications/terminal/exec"
    TERM_EXEC_ARG_KEY="/desktop/gnome/applications/termina/exec_arg"
    TERM_EXEC=$( gconftool-2 --get ${TERM_EXEC_KEY}) # e.g.
    "gnome-terminal"
    TERM_EXEC_ARG=$( gconftool-2 --get ${TERM_EXEC_ARG_KEY} ) # e.g. "-x"
    terminal="$TERM_EXEC $TERM_EXEC_ARG"
    For XFCE:
    Xfce has a directory called "share/xfce4/helpers/" which contains desktop entry files for commonly used terminals, browsers and email apps. These entries contain extra keys like X-XFCE-Category=WebBrowser or X-XFCE-Category=TerminalEmulator .
    Then there is a file called ".config/xfce4/helpers.rc" which in my case looks like:
    WebBrowser=firefox
    MailReader=thunderbird
    From: http://www.mail-archive.com/[email protected] … 01661.html
    edit: there is also xdg-settings (in xdg-utils) which can store default-app information, but i'm not sure if all DE's make use of this..
    Last edited by litemotiv (2011-02-02 14:08:27)

  • "new window" command always opens a new window that is smallest possible size, so I have to resize it - every time.

    What's causing this?
    Moreover, is this related? I can't see the downloads window. CMD-J isn't brining it up, nor will it appear via the menu.

    Click the link to [http://support.mozilla.com/en-US/kb/Options%20window%20-%20Content%20panel?as=u#w_content-settings Advanced JavaScript Settings]
    You need to uncheck the setting which enables sites to resize windows. This option is accessible in the submenu by clicking the "Advanced" button in the Javascript menu shown in the image.

  • Need help with open folder (in Explorer) and click on Toggle Transparency Grid

    hi guys, can i with Extended script enable Toggle Transparency Grid ? i try using app.executeCommand( app.findMenuCommandId(Toggle Transparency Grid));and nothing.
    and also can i some how open folder in windows explorer via Extended script? i try google but find only examples for web-javascript.....
    thx

    Actually your command should consist quotes. It will look like this:
    app.executeCommand(app.findMenuCommandId("Toggle Transparency Grid"));
    But I`ve tried, and it doesn`t do what you need, because it launches Adobe Anywhere.
    Solution for second question is:
    var path = "C:/Program Files/Adobe/Adobe After Effects CC/Support Files/";
    var cmd;
    cmd = "";
    if($.os.indexOf("Win") != -1){
    cmd = "explorer " + String(path);
    }else{
    cmd += (("open \"" + String(path)) + "\"");          // change var path for Mac
    try {
    system.callSystem(cmd);
    }catch (e){
    alert(e);

  • My taskbar crashes when I try to open any documents folder. (Windows Explorer, My Library, Documents, Pictures, Music, Videos, Dropbox folder, Skydrive, every folder!)

    Hello. I don't know if this is the right category for my problem but here it goes.
    Since yesterday, I've been trying to open Windows Explorer folder (which include Documents, Pictures, Videos, Music, Downloads, Computer, Dropbox, Skydrive, etc.) and as a result my taskbar and my background crashes, the folder doesn't open and then my taskbar
    and bg goes back to normal. I searched the problem in other forums but the responses are from last year and this is happening since 29/03/2014 (yesterday) so I don't know if this is a new thing or old. I called my sister because she has this same laptop and
    asked her if this is happening to her also and she said it is so I'm starting to think that W8.1 needs an update. Idk :(. We have a Dell Inspiron 15 and it's brand new ! I ordered mine last month.
    Problem Details:
    Windows Explorer Stopped Working
    Description
    Faulting Application Path: C:\Windows\explorer.exe
    Problem signature
    Problem Event Name: APPCRASH
    Application Name: Explorer.EXE
    Application Version: 6.3.9600.16441
    Application Timestamp: 5265dec8
    Fault Module Name: KERNELBASE.dll
    Fault Module Version: 6.3.9600.16496
    Fault Module Timestamp: 52b3f283
    Exception Code: c06d007e
    Exception Offset: 0000000000005a88
    OS Version: 6.3.9600.2.0.0.768.101
    Locale ID: 1033
    Additional Information 1: 6268
    Additional Information 2: 6268221e00f9b14c7c313c3b93b7b1c8
    Additional Information 3: 7b89
    Additional Information 4: 7b8924d255daf0419ae3ae354fccfe84
    Extra information about the problem
    Bucket ID: 85aa1369beebb4641c7856cb8a4724e2 (85906392470)
    If anyone can help me with this, I will be forever thankful !

    Hi,
    Did you make any change to your system recently? To fix this problem, firstly, you can try to use
    SFC /scannow command to fix it for test.
    If problem persists, just try to boot your system into Safe mode to test if this problem occures. If problem occures, It would be better to use system resotre to revert your system to a former timepoint state.
    To find the reason about this problem, you can use Process Monitor
    to capture Explorer.exe when open folder or library.
    Roger Lu
    TechNet Community Support

  • When I use the shortcut to open a new window in safari (command N), I get a 404 error message from Google. How do I change where 'Command N' routes to?

    When I use the shortcut to open a new window in safari (command N) on my Macbook Pro, I get a 404 error message from Google. How do I change where 'Command N' routes to? 

    It's not necessary to change the Command N keystroke..
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:   Remove All Website Data
    Then delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, troubleshoot Safari extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • Where is the "Always open folder in new Finder Window/Tab" option ?

    Prior to 10.9, we have an options to choose whether to open folders in the same window in Finder preference. But I can't find anything similiar to that in Mavericks. Now I'm forced to open folders within the same window / tab, unless I press the CMD key while double clicking on the folder, and I still yet to find a way to do so with keyboard navigation.
    Did I missed something ?

    Yes I know that, but that option is completely useless, since you're forced to open a folder within the same tab.
    Even with that option turned on, you still can "open folder in new tab" only by holding CMD key while double-clicking on a folder. And there is still no way to open a folder in new tab with keyboard navigation: CMD+O or CMD+Down-Arrow will always open folder within same tab.
    So I consider this as a bug; maybe someone just forget to enable this option in the Finder preference dialogbox.
    Is there any terminal command (defaultswrite ?) or 3rd party tool like TinkerTool, OnyX or Deeper that can change the default behavior of Finder ?

  • Since switching to Firefox this week, when I click on a hyperlink in an e-mail in Outlook, I get this message, "General failure. An error occurred in sending the command to the application." It doesn't open a new window or do anything.

    Since switching to Firefox this week, when I click on a hyperlink in an e-mail in Outlook, I get this message, "General failure. An error occurred in sending the command to the application." It doesn't open a new window or do anything. Any work around to fix this?

    See this lnk for a fix, it worked for me!
    http://www.pcworld.com/article/200103/fix_outlook_general_failure_error_for_email_links.html

  • Is there a keyboard shortcut in OS 10.6 for "open folder window" and "close folder window"?

    Is there a keyboard shortcut in OS 10.6 for "open folder window" and "close folder window"?  I have a hand condition at the moment that makes it painful to mouse the cursor over to the arrow and click it (for instance, in the sidebars for Finder or iTunes) to open or close a folder.  If anyone knows a keyboard shortcut for this, I'd really appreciate it--thanks!

    OS X keyboard shortcuts

  • Outlook 2010 on Exchange 2007 ~ Can no longer see Calendar in Folder List ~ Only viewable by right-clicking favorite icon and selecting 'Open in New Window'

    Office 2010, Windows 7 64 bit, BB sync, everything has been fine since forever. All of a sudden between Saturday and today, *poof* I can't get the calendar view.
    I have tried the switches, /resetfolder and all the rest, repair install Office, etc., no go.
    I can log into my OWA view and calendar shows up there, but on the local system, when you clicl on Calendar, it shows My Calendars at the top, but there is no calendar. The only way to view it is to right click Calendar and choose 'Open in New Window'.
    All my data is there, can add to it and all, but it is missing from the folder list, thereby making it very difficult to use.
    I also created a new profile, connected to Exchange ONLY and it still will only show the calendar if you select 'Open in New Window Only'. I can post a screen shot if this allows.
    Thanks in advance.
    Brian

     
    Hi ,
    I suggest you refer to the following steps to recreate the Calendar folder.
    1. Switch Outlook to Online mode.
    2. Start MFCMAPI and create a backup of the Calendar items
    a. Open the Calendar folder by double clicking it.
    b. Select all items (simple ctrl+a).
    c. Copy all items into an empty folder.
    d. Additionally you can create a backup using a PST file if you wish.
    3. Delete the Calendar folder using MFCMAPI.
    4. Close Outlook.
    5.Recreate Windows Profile and Outlook Profile.
    6. Start Outlook with “/resetfolders” switch, this will recreate the default Calendar folder.
    7. Try to set permissions on the Calendar folder to see how it works with a fresh and empty folder.
    8. Copy/Move the items back into the Calendar.
    By the way, I don’t understand “the local system” what you said, it can view My calendars at top in Outlook or OWA ?
    And it can’t view calendar list or the calendar content under My Calendar?
    Wendy Liu
    TechNet Community Support

  • TS1593 my iphone 5 wont open in itunes. Its opens in a windows folder instead. how do i get it to open in itunes?

    My iPhone 5 opens in a Windows folder when I connect it with a USB. I cannot see it in iTunes to sync.

    Hello DaynaFromCA,
    The following article can help get your iPhone and iTunes working together once more.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Cheers,
    Allen

  • Command click in Yosemite does not open a new window

    Command click in Yosemite does not open a new window.  ??

    Is the checkbox in this screenshot checked for your Finder preferences.  If so uncheck it and try again.

  • Cannot open folder files in browser window

    Since the last 5 or so firefox update, i notice i am unable to open folder
    files in the browser window on most of the websites i
    have been on. Therefore if i need to upload a file on a website
    when i click the open folder button on the website, i am
    not seeing the folder window open with all my files on my
    computer that i need to select. Instead i have to use another
    browser to do all my uploads, and that breaks my momentum.
    How can this be corrected?

    Hi hardworker2014,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that temporarily turns off hardware acceleration, resets some settings, and disables add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • I'm using FF for Mac 3.6.13 and everytime I open a new window or tab the image of what I see is tiny which requires me to click Command + to enlarge it. The actual page is normal size, but its the image of the page that opens tiny.

    I'm using FF for Mac 3.6.13 and every time I open a new window or tab the image of what I see is tiny which then requires me to click Command + to enlarge it about 4 or 5 times. The actual page is normal size, but its the image (what I see) of the page that is tiny.

    Thanks but Command 0 on a Mac only makes a temporary change to that one page. The link you provided doesn't show how to make a permanent change. Do you know how to permanently change this so I don't have to do it to every new page?
    Thank you.

Maybe you are looking for

  • Apple TV 1st Gen + iTunes 10 + Photo Sync (with Aperture 3) = No Sync

    I recently started to experience the same issues that others have reported regarding not being able to sync their Apple TV classic (1st generation) with iTunes 10. I grudgingly disconnected my Apple TV from iTunes which wiped out all the content. The

  • Separate calculation of service tax & VAT in PO itself

    Hi ., My client wants to configure the following scenario without changing  tax procedure( TAXINN) While creating a PO for Rs. 100 then on Rs. 30 there should be a calculation of VAT and on Rs. 70 there should be a calculation of Service tax. Please

  • On a Mac, how do I delete RSS from the bookmarks menu?

    Firefox is 7.0.1, Mac OS is 10.6.8. I have RSS tags in my bookmarks menu, probably from an older Mac, and I want to delete them. All I can do with them is open them; they won't budge! Help!

  • Problem opening a certain site properly

    Hello, I have problem opening a certain site properly. I use firefox 4.0.1 and have tried pretty much everything that has already been suggested in other similar problems I found posted here but the site continues to look wrong. No images, blue lette

  • Terminus 9pt font issue in Konsole after upgrade

    I have a slightly weird font issue in Konsole following a bunch of upgrades today. Basically, at the beginning of the command line and the beginning of subsequent words on that line, the very first character sort of flashes and gets truncated if it i