How to open files using cmd command?

Hello... First:
try {
Process p = Runtime.getRuntime().exec("cmd.exe ?????");
catch(Exception e){ }well... I'm trying to open files using a cmd command. It's working only oppening files on my own pc, but i need to know if i can open files using a localweb's pc, with the follow address, for example:
"\\172.21.0.4\firstdir\seconddir\thirddir..."
Thanks :D

Gamboua wrote:
normaly, i type \\172.21.0.4\dir\dir\dir... directly directly in my cmd.This only works because you are already running cmd.exe
Try getting it to work with cmd.exe at the start of the line.

Similar Messages

  • How to open files using the Windows associated program?

    I have a LV program that is generating a list of files that I may want to open using the associated Windows program. Some are standard Office files but others require proprietary analysis programs.  All have Windows associations such that I can double click on the file name in the Windows file manager and launch the appropriate program. I would like to mimic this behavior within my LV program but without coding a case for each file extension, some of which I may not anticipate now.

    There are some problems with that VI.  I have one user that I had to track a problem down with trying to open a PDF file.  Their registry key HKEY_CLASSES_ROOT\.pdf was read in with a value of "AcroExch.Document                 " (with a lot of spaces after it), which prevented this VI from finding the next key (AcroExch.Document\shell\open\command) which identifies the path to Adobe Acrobat.  Instead of getting the path to Adobe Acrobat, I got back "Adobe Acrobat 7.0 Document" as the path (see attached error).
    I checked the key with the Windows registry editor, and it did NOT show the extra spaces.  However, just opening the key and selecting OK (without making changes) was enough to clear the problem.
    Not sure if this problem is with the registry keys that Adobe Acrobat created when it was installed or upgraded (the user was on version 9.0, but there are older versions on that machine, too), or if the problem was with the LabVIEW registry key readers in Open a Document on Disk.vi.
    Message Edited by Joe Gerhardstein on 05-13-2009 03:13 PM
    Message Edited by Joe Gerhardstein on 05-13-2009 03:17 PM
    Joe Gerhardstein
    Averna Test Systems
    Certified LabVIEW Architect
    http://www.averna.com
    Attachments:
    Open a Document.jpg ‏82 KB

  • Redirects and saves process listing to a file using glance command

    Sorry for asking this in wrong forum.
    Does Anyone have script for cpu monitoring usong glance on hp-ux
    I need a command which redirects and saves process listing to a file using glance command
    Thanks for help

    glance -f /tmp/gout -adviser_only -syntax /opt/perf/examples/adviser/activity -j 10 -iterations 3
    glance -adviser_only -syntax glance_advisor -iterations 1 > /tmp/results
    cat glance_advisor
    PRINT GBL_STATDATE," , ",GBL_STATTIME
    PROCESS LOOP
    NUM_FILES = 0
    PROC_FILE LOOP
    NUM_FILES = NUM_FILES+1
    PRINT "PID: ",PROC_PROC_ID," Process Name: ",PROC_PROC_NAME," # open files: "
    ,NUM_FILES|5|0
    My question is :
    how to get top processes (cpu/memory wise)
    using glance
    for example
    glance -f /tmp/gout -adviser_only -syntax some_syntax_script -j 10 -iterations 3
    Please help me to find top 20 cpu using processes using glance.
    I need to get listing in a file so that I can use these pid to see in application or database.

  • Not able to extract performance data from .ETL file using xperf commands. getting error "Events were lost in this trace. Data may be unreliable ..."

    Not able to extract  performance data from .ETL file using xperf commands.
    Xperf Commands:
    xperf –i C:\TempFolder\Test.etl -o C:\TempFolder\BootData.csv  –a process
    Getting following error after executing above command:
    "33288636 Events were lost
    in this trace. 
    Data may be unreliable
    This is usually caused
    by insufficient disk bandwidth for ETW lo
    gging.
    Please try increasing the minimum
    and maximum number of buffers
    and/or
                    the buffer size. 
    Doubling these values would be a good first at
    tempt.
    Please note, though, that
    this action increases the amount of me
    mory
                    reserved
    for ETW buffers, increasing memory pressure on your sce
    nario.
    See "xperf -help start"
    for the associated command line options."
    I changed page size file but its does not work for me.
    Any one have idea, how to solve this problem and extract ETL file data.

    I want to mention one point here. I have total 4 machines out of these 3 machines above
    commands working properly. Only one machine has this problem.<o:p></o:p>
    Hi,
    I consider that you can try to use xperf to collect the trace etl file and see if it can be extracted on this computer:
    Refer to following articles:
    start
    http://msdn.microsoft.com/en-us/library/windows/hardware/hh162977.aspx
    Using Xperf to take a Trace (updated)
    http://blogs.msdn.com/b/pigscanfly/archive/2008/02/16/using-xperf-to-take-a-trace.aspx
    Kate Li
    TechNet Community Support

  • How to open file in their native application

    How to open file in their native application form web browser?
    if associated .txt file should open in editplus then from web browser if I try to open .txt file it should open in editplus rather then open in notepad(default), If on other computer if I associate .txt file should open in word, it should open in word. I am using Tomcat Web Server.

    that's nothing you could influence from a servlet or jsp.
    all you could do is specifying the content type of your response.
    Next you might hope that the client requesting your content uses a browser that relates the given content type to a special application (e.g. "text/plain" -> editplus or notepad or kedit or word or ...)

  • Switching to MAC from Windows: How to open files in Office 2007  VMFusion?

    Dear all,
    Intro:
    I switched to MAC and now cannot find the solution to a simple problem.
    First: I need an Office 2007 PowerPoint FULLY compatible solution.
    What did not work: IWork, NeoOffice, Office 2008 (this is not fully compatible with Office 2007 Files)
    I also had problems with: Parallels (not stable, too many hangups), codeweaver crossover (office files do not even open sometimes, good idea but not suitable for serious office jobs)
    Now I have VMWare Fusion with WinXP and Office 2007 as this seems to be the only truly stable and best solution to run Office 2007 on Mac
    Question:
    How to open files in Office 2007 on MAC VMWare Fusion easily?
    It would be nice to spotlight the file and click and it opens in powerpoint or excel or word 2007 in Virtual Machine.
    The only known solution to me is to use the Windows explorer to navigate to the file and then open it from Fusion WinXP. This is very cumbersome and honestly makes me think of getting back to a windows machine as I work with office frequently.
    Thank you for your help.

    Thank you for the quick reply.
    Yes, I have Office 2007 installed. The problem is that to open files in Fusion virtual machine I have to use the windows explorer and navigate to the file to open it. Now that I have the mac I want to use the good feature of spotlight. So when I search and find the file I want to open I cannot click on it on the mac (or in finder) but I have to switch back to the virtual machine, locate the file again and open it from windows.
    You might think - ok, why not skip the first step of using spotlight, and look up the file in windows explorer before anything else?
    Correct, but I know from parallels that there is a file association possible to directly access the file in office 2007.
    This does not seem possible in Fusion - So the question is whether there is a possibility on the mac to associate the file and to click on it in finder/spotlight and the office 2007 application in fusion opens the file. So far I could not find anything.
    Thanks

  • Adobe Reader XI does not open files with a command line "path" argument.

    Adobe Reader XI does not open files with a command line "path" argument. Version X and lower all worked fine. I have deleted and reinstalled the program with no success. Is this a bug?

    Hi Daniel,
    What is the make of the printer and is it using PCL or PS driver.?
    Do you have Acrobat installed on this machine as well?
    Please check if 'Print Spooler' service is running on the machine.
    Regards,
    Rave

  • Adobe Illustrator CC can't open files with "cmd O"

    After Adobe Illustrator CC update unable to open files with "cmd O" while CS6 works perfectly.

    Moving the discussion to Illustrator.
    Thanks,
    Atul Saini

  • Creating .swf from .fla file using ADT command line

    Dear Adobe Community and Moderators:
    Is it possible to use the ADT command line to directly compile an .fla file into an .swf file? Context: I have an app created in Flash Pro CS55 (6 months worth of work), but now found Adobe has dropped Flash Pro in favor of Flash Builder or Flex. I have some native extensions I want to use for iOS, but they require Air 3.1 to compile (swf-version=14) i.e. using the MessageUI framework in a static .a library for an Air app. Flash Pro CS55's top end limit seems to be swf-version=13 (Flash 11). Because of heavy investment in time and energy into our Air app in Flash Pro, it's not feasible to convert to Flex by end of week. I tried creating an .swc file, and taking the library.swf from that, but alas, a catch-22, Flash Pro CS55 only compiles to swf-version=13.
    Is there any way to either (a) directly compile my root .swf file (from the .fla file) using a command line (so I can use ADT from Air 3.1 SDK) or (b) some way I can marry a native extension I've found I can use on GitHub which is swf-version=14? Again, my issue is that I have to use Air 3.1 since only it supports iOS5.
    Any thoughts, suggestions, comments are highly appreciated (including if it's not possible to do what I'm trying to do).
    Thank you Adobe community in advance,
    Alex

    I have the exact same question, please respond if you hold the answer to this! mxmlc won't work for me since I have created too many assets within the fla already! Thanks!

  • Question about openning files using SDK 10.

    I have written a Plug-In for SDK 9 that works wonderfully. One of the functions is for the user to be able to page (Next/Previous) between PDF files on our server. This functionality now longer works without crashing Acrobat 10. All I am doing is creating the URL path to the next/previous PDF, creating a CustomFileSys with the path and calling AVDocOpenFromFile.
    Does this no longer work with Acrobat 10 SDK?
    Thanks!

    Should work fine, AFAIK.
    For this level of issue, I would open a formal support request with developer support.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Mon, 10 Oct 2011 08:51:08 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Question about openning files using SDK 10.
    Question about openning files using SDK 10.
    created by Greggars<http://forums.adobe.com/people/Greggars> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3963065#3963065

  • Reproducable program locks when opening files using finders "Today" filter

    Hi,
    I am experiencing lockups (have to force quit the programs - which works) in different software products when I try to open files using the "Today" smartfilter from finder / the open dialogue. This wil happen when I attach files to websites using a file-input in Safari as well as with Photoshop just to name an example. It happens every time. Don't know why - and sure, I can avoid using a workflow like this - but I think this is not normal.
    Anyone else experiencing these problems? Seems to be related to snow leopard since I do not remember having had these issues in the past.
    The filetype does not seem to matter. It happened with PDF's, Jpg's, PSD's, etc.
    Message was edited by: jmueller

    RollingRocker, did you ever get a solution for this? I am having the same problem. I produce a pdf using a JSF third party api called flying saucer, which actually uses itext to produce the pdf. I can attempt to produce the same exact pdf over and over and about 85% of the time the error occurs and the rest of the time the pdf opens successfully with no error. Obviously 15% of the time the reader is completely happy with this pdf, so it is not a malicious document in any way.

  • Bridge Opens files using Windows Photo viewer - not Photoshop CC.  How do I change default?

    Bridge opens image files using Windows Photo viwer - not Photoshop CC.  This is an utterly useless default setting.  How do I get Bridge to open a file in Photoshop?

    Edit/preferences/file type association.  Set extensions to prefered default.

  • HELP!!! I deleted a .dbf file using OS command

    Hi Experts,
    I have accidently deleted a datafile, that is my index tablespace(.dbf) using OS command(AIX).
    After that I was not able to open my database since the datafile is missing and I was not able to drop the datafile when the database in not open.
    I dont any have recover option in my database to rrecover the datafile.
    Can anyone pls tel me how can I delete the datafile when my database is not open.
    Thanks in advance.
    nonuday
    Edited by: Nonuday on Apr 29, 2012 10:51 PM

    Hi,
    >
    Its in not recovery mode, or you do not have any backup?
    Then you have to drop that file from SQL as
    SQL> alter database datafile 'Location' offline drop;
    I tried what you have mentioned..
    SQL> alter database datafile '/oracle/oradata11g/cboedbCBOEDEV_T24DISTINDEX1.dbf' offline drop;*
    Database altered.*
    SQL> alter database open;*
    alter database open*
    +*
    ERROR at line 1:*
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open*
    SQL> alter database open NORESETLOGS;*
    alter database open NORESETLOGS*
    +*
    ERROR at line 1:*
    ORA-01610: recovery using the BACKUP CONTROLFILE option must be done*
    SQL> recover using backup controlfile;*
    ORA-00279: change 362471193 generated at 02/01/2012 15:59:03 needed for thread*
    +1+
    ORA-00289: suggestion :*
    +/glosoft/oracle/oracle11g/app/oracle/product/11.1.0/db_1/dbs/arch1_24555_7443323+
    +42.dbf+
    ORA-00280: change 362471193 for thread 1 is in sequence #24555*
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}*
    ORA-00308: cannot open archived log*
    +'/glosoft/oracle/oracle11g/app/oracle/product/11.1.0/db_1/dbs/arch1_24555_744332+
    +342.dbf'+
    ORA-27037: unable to obtain file status*
    IBM AIX RISC System/6000 Error: 2: No such file or directory*
    Additional information: 3*
    What to do now??
    pls help...
    Edited by: 897910 on Feb 3, 2012 3:46 AM

  • Opening files using a script...

    Every time I use the "open" command in applescript, I get the message "cannot get file." How do I open files with a script?

    Your usage of documents folder in this case is incorrect. They are reserved words, but as part of *Standard Additions'* path to command. The Finder is expecting a file path, so try this instead:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    tell application "Finder"
    open every document file of (path to documents folder) whose name contains searchtext
    --where searchtext is text input from the user
    end tell
    </pre>

  • How to open files with "return" key and delete files with "delete" key?

    Hi friends,
    It's been over a week since I got my iMac and I'm loving it. However, while I'm adapting alright to 'mac' key shortcuts (e.g. using the COMMAND-S for save as opposed to CONTROL-S used in PC).
    However, there are 2 things that are annoying me greatly right now.
    1. I like selecting files with keys as opposed to using the mouse. I make animations and prefer keyboard shortcuts. However, when I hit "return", instead of opening the file it goes into file-renaming mode. How do I change this? Likewise, I would like to delete files by hitting the delete key. This does not work - how do I change this?
    2. When I click SHIFT key sometimes, it gets 'stuck' - which is annoying because I start typing CAPITALS when I wasn't aware I've activated the CAP-LOCK key. How do I get rid of this? Like, I don't want to hit SHIFT for instance, and have that up arrow thing 'stuck' there.
    Your help would be greatly appreciated! Thanks!
    iMac G5   Mac OS X (10.4.9)  

    Hi
    Thanks for the star.
    If you went into Mac Help & searched, 2 results come up:
    Full keyboard access shortcuts for interacting with items (for selecting & activating controls).
    Full keyboard navigation keyboard shortcuts (for navigating Desktop, Windows, Menu bar etc)
    From the lists, select the link that closely describes your situation.
    I have to say that I can't reproduce your problem, does this happen just in applications or in everything? I don't know if it's to do with this but pressing Shift 5 times turns on Sticky Keys & Option(Alt) 5 times to turn on Mouse Keys (System Preferences>Universal Access>Keyboard).
    After typing "Sticky Keys" into Mac Help, I found this:
    "Pressing a group of modifier keys as a sequence
    To perform many tasks on your computer, you need to press one or more modifier keys (Shift, Command, Option, and Control) at the same time as another key. For example, pressing Shift-Command-Q in the Finder opens the Logout dialog.
    If you have difficulty pressing several keys at once, you can make it easier to press a set of keys by turning on Sticky Keys in the Universal Access preferences pane. With Sticky Keys turned on, you can press a set of modifier keys as a sequence. As you press each key, the symbol for the modifier key appears on the screen.
    Choose Apple menu > System Preferences and click Universal Access. Then click Keyboard.
    Select the On button next to Sticky Keys.
    To hear a sound whenever the computer registers that you have pressed a modifier key, select "Beep when a modifier key is set."
    To see an icon indicating which modifier keys you have pressed, select "Display pressed keys on screen."
    You can also use Slow Keys to adjust the amount of time between when you press a key and when it is activated."
    Any of this close to your problem?
    Steve
    Edit: I'm right, it's Sticky Keys:
    http://www.macusenet.com/190284-post2.html

Maybe you are looking for