Doesn't it get very old, same question about running dos command?

To everyone who is tooo lazy to search.
Process p = Runtime.getRuntime().exec("progname arg1 arg2");
What a wast of everyone's time responding to the same question on how to run a dos command.

I think you'll find it's
Runtime.getRuntime().exec(new String[]{"progname", "arg1", "arg2"});

Similar Messages

  • A question about the SPOOL command in sqlplus

    Dear all,
    I have a question about the SPOOL Command and I would appreciate if you could kindly give me a hand. Consider the following sql script.
    SPOOL result.txt
    SELECT * FROM mytable;
    SPOOL OFF;This works pretty well, and the whole content of the table "mytable" is exported to the text file "result.txt". However, sqlplus prints also the number of lines
    printed after each query. As a result, after running this script, at the end of the file, I have always a line like
    "20541 lines returned"How can I avoid this line (the number of returned lines) in my result file?
    Thanks in advance,
    Dariyoosh

    Peter Gjelstrup wrote:
    Hi Dariyoosh,
    As you are about to find out, SQL*Plus is a really powerful tool once the wonders of it are discovered.
    You really should study the reference
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10823/toc.htm
    In your current case especially the SET command
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10823/ch_twelve040.htm#BACGAJIC
    Regards
    PeterHello there,
    Thank you very much for your attention to my problem and in particular the interesting links.
    Kind Regards,
    Dariyoosh

  • Question about running EverQuest on a Boot Camp MacMini

    Hey all,
    I'm trying to get EverQuest working on my MacMini running Windows 7 via Boot Camp. Browsing through the archives of the internet, I've found many posts from 2007-2010 of people having success with this on a MacBook Pro (a few posts of which I found in these community archives), and I'm 99% certain that my MacMini hardware is more than sufficient. Anyway, I haven't even got to loading the game yet so performance my question isn't about performance.
    My issue is that I'm trying to run the EverQuest LaunchPad to start patching the game, and it won't connect right from the outset. I've followed all of SoE's EQ LaunchPad Troubleshooting tips (here: http://help.soe.com/app/answers/detail/a_id/29017 ) and I've also gone in to my router settings and opened/forwarded all of the necessary EQ ports to this computer's IP address. I was hoping that would do it but no luck.
    I also contacted the SOE Support staff and they were categorically unhelpful as usual. I used to play EQ a decade ago and I wasn't surprised to see that their customer service hasn't changed one bit. Well, here's to hoping that the Mac community is much more positive and helpful than SOE Support.
    Has anyone experienced similar problems getting EverQuest to run on a Windows Boot Camp machine like this? How did people get their LaunchPad client to connect? I'm hoping there's some really dumb, obvious fix that I'm missing here because it really does seem like many have gotten this to work successfully and I'm a bit stumped at the moment..
    Any advice would be greatly appreciated. Thanks!

    the hardware of macs today and windows computer is pretty much the same
    so when one use bootcamp it's really just a bootloaded which collects the windows partition from the harddisk and then let it take over and apart from one having to install the apple drivers and software to get it running well
    it's the same as any windows computer
    I do all my my gaming on windows on my imac and face no different challenges then I did when I had a windows computer really
    so If I were you I would broaden my googling for solutions not just to include bootcamp but all windows issues with newer windows versions and everquest could as easy be a issue there with newer video card drivers and the likes

  • Question about broker Switchover command

    Hi guys
    i have one question about switchover cmd . For example, i have 1 primary database called stdby3 and 2 standby databases that are called stdby1 and stdby2. When i performed switchover cmd to stdby2 standby database, why the old primary database stdby3 could not become new standby database after i performed a switchover; furthermore the new primary and standby databases are not opened after the switchover process is completed
    output screen:
    DGMGRL> show configuration;
    Configuration
    Name: stdby1
    Enabled: YES
    Protection Mode: MaxProtection
    Databases:
    stdby3 - Primary database
    stdby1 - Physical standby database
    stdby2 - Physical standby database
    Fast-Start Failover: DISABLED
    Current status for "stdby1":
    SUCCESS
    DGMGRL> SWITCHOVER TO stdby2
    Performing switchover NOW, please wait...
    Operation requires shutdown of instance "stdby3" on database "stdby3"
    Shutting down instance "stdby3"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires shutdown of instance "stdby2" on database "stdby2"
    Shutting down instance "stdby2"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "stdby3" on database "stdby3"
    Starting instance "stdby3"...
    Unable to connect to database
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Failed.
    You are no longer connected to ORACLE
    Please connect again.
    Unable to start instance "stdby3"
    You must start instance "stdby3" manually
    Operation requires startup of instance "stdby2" on database "stdby2"
    You must start instance "stdby2" manually
    Switchover succeeded, new primary is "stdby2"
    DGMGRL> show configuration;
    Error:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 130 Serial number: 45
    DGMGRL> exit;
    oracle@localhost ~$ dgmgrl
    DGMGRL for Linux: Version 11.1.0.6.0 - Production
    Copyright (c) 2000, 2005, Oracle. All rights reserved.
    Welcome to DGMGRL, type "help" for information.
    DGMGRL> connect sys
    Password:
    Connected.
    DGMGRL> show configuration;
    Error:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    DGMGRL> connect sys@stdby3
    Password:
    Connected.
    DGMGRL> show configuration;
    Error:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    DGMGRL>
    Edited by: user6981287 on Jan 6, 2010 9:27 AM

    this is my configuration
    DGMGRL> show configuration
    Configuration
    Name: matrix
    Enabled: YES
    Protection Mode: MaxPerformance
    Databases:
    stdby1 - Primary database
    stdby2 - Physical standby database
    stdby3 - Physical standby database
    Fast-Start Failover: DISABLED
    Current status for "matrix":
    SUCCESS
    --- this is my first successful switchover -----
    DGMGRL> switchover to stdby2
    Performing switchover NOW, please wait...
    New primary database "stdby2" is opening...
    Operation requires shutdown of instance "stdby1" on database "stdby1"
    Shutting down instance "stdby1"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "stdby1" on database "stdby1"
    Starting instance "stdby1"...
    ORACLE instance started.
    Database mounted.
    Switchover succeeded, new primary is "stdby2"
    -------------------this is my second switchover -------------
    DGMGRL> switchover to stdby1
    Performing switchover NOW, please wait...
    New primary database "stdby1" is opening...
    Operation requires shutdown of instance "stdby2" on database "stdby2"
    Shutting down instance "stdby2"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "stdby2" on database "stdby2"
    Starting instance "stdby2"...
    Unable to connect to database
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Failed.
    You are no longer connected to ORACLE
    Please connect again.
    Unable to start instance "stdby2"
    You must start instance "stdby2" manually
    Switchover succeeded, new primary is "stdby1"
    DGMGRL>
    Edited by: user6981287 on Jan 7, 2010 12:57 AM
    Edited by: user6981287 on Jan 7, 2010 1:00 AM

  • Advanced question for running DOS programs on a Mac.

    So what is a simple process on a Windows machine seems to be a challege on my new Mac.
    In summary I have several hard drives laying around that need to be checked for problems before they are used. There are lots of free DOS programs available for PCs that do just that. Many are provided directly by the hard drive manufacturers themselves (ie Segate SeaTools) and they are fantastic. Macs unfortunately can't run DOS programs (without hacks like rEFInd) and none of the manufacturers provide Mac compatible software. Looking on the internet everyone points me to Disk Utility to check drives, but compaired to something like SeaTools, Disk Utility is useless. I found Micromats TechTool Pro 6 which comes close to what I need except its expensive and has lots of features I don't need.
    I want to avoid installing windows in bootcamp or a VM just to do this one simple task. Very frustrating that it seems like im the only one wanting to do this with a Mac.

    Did some more research and figured out these are my options:
    -Find a mac alternative (few out there, most very bacic, or very expensive)
    -use rEFInd (which is in beta, and modifies OSX)
    -bootcamp (which doesnt allow BIOS access to select a dvd DOS program, so doesnt help. Also, mac doesnt use legacy usb and keyboard drivers so you cant use keyboard/mouse in most DOS programs)
    -Vmware
    So to me my best option was to use Vmware. Installed on a USB hard drive to save space and configured VMware bios to boot from selected .iso of a disk and it worked. Successfully ran SeaTools and because VMware emulates legacy mouse/keyboard it worked.
    One problem though. SeaTools for DOS doesnt work from USB sata adapter, and considering its a macbook air im out of luck.

  • WHY is TBird continually asking for my passwords? It lets me into my email whether I give it or not so what good is it? This is getting very old.

    When I do enter my password TB tells me it's wrong but it IS NOT wrong - I've checked them in preferences they are correct. What is the deal here?
    Also, problem #2: I do not want TB to be my default client, Every time I log in I get a window offering to set TB as default with no choice not to. This comes up every time. I have a screen shot of it but there's no attach button on this screen.
    Any help appreciated.
    Thanks,
    Linda

    re: When I do enter my password TB tells me it's wrong but it IS NOT wrong - I've checked them in preferences they are correct. What is the deal here?
    First check that the password will get access to your webmail. If you are prompted to update the webmail password, then follow instructions to update it.
    In Thunderbird, remove the stored password, both mailbox and smtp.
    * Tools > Options > Security > Passwords tab
    * click on 'Saved passwords'
    * click on 'Show passwords'
    * highlight the mailbox and smtp passwords for account
    * click on 'Remove'
    * click on 'Close'
    * click on OK to save changes to Options.
    * Close thunderbird and wait a short while for background processes to complete.
    * Restart Thunderbird.
    * It should ask for password, enter at prompt and select Password Manager to remember the password.
    * Click on OK.
    ''re: Every time I log in I get a window offering to set TB as default with no choice not to. This comes up every time.''
    Maybe you have a setting to check to see if TB is the default client?
    * Tools > Options > Advanced > General tab
    * under 'System Integration'
    * 'Always check to see if Thunderbird is the default mail client on startup'
    * Uncheck this checkbox.
    * click on OK to save changes.
    ''re: I have a screen shot of it but there's no attach button on this screen. ''
    It's been a while since I asked a Question, so I cannot remember if there was a facility to add an image at the time of creating the question.
    But once a question has been created, below every 'Post a Reply' text entry box, there is 'Add images:' and a 'Browse' button.
    click on Browse button, locate the saved image and click on Open to upload it. You will need to add some text in the reply box to give the image some context. Then click on 'Post Reply'

  • This is getting very old!

    No one on itunes seem to help us out. They only help with certiant problems. Im getting tired of waiting almost two hours without help with my problem!

    What issue are you having?

  • Getting a new macbook, questions about transferring files with Time Machine

    I now plan to switch computers to one of the new Macbook pros. Since I now use Time Machine, I'm planning to just upload the backup to the new computer when I get it. the backups are able to be transferred to a new one for an upgrade right?
    Also, I had to switch hard drives once about 2 years ago, and when I did, the backup DVD I made for my iTunes didn't remember which of my ~2000 songs are checked and which aren't, leaving me to have to do it manually over the course of a few weeks. Will Time Machine do this for me?
    I'm also running Leopard atm, will there be any problems uploading all the info since the new computer will be running Snow Leopard, and the backup was made through Leopard?

    falkner09 wrote:
    I now plan to switch computers to one of the new Macbook pros. Since I now use Time Machine, I'm planning to just upload the backup to the new computer when I get it. the backups are able to be transferred to a new one for an upgrade right?
    Not via a full system restore. You want to use +Setup Assistant+ when the new Mac first starts up. You can transfer directly from the old Mac, or it's backups. See [Setting up a new Mac from an old one or its backups|http://web.me.com/pondini/AppleTips/Setup.html] (or use the link in *User Tips* at the top of the +Snow Leopard > Installation and Setup+ forum).
    Firewire from the old Mac will be fastest, by far. If you use your network, connect via Ethernet cable; wireless will take an eternity.
    Also, I had to switch hard drives once about 2 years ago, and when I did, the backup DVD I made for my iTunes didn't remember which of my ~2000 songs are checked and which aren't, leaving me to have to do it manually over the course of a few weeks. Will Time Machine do this for me?
    It should.
    I'm also running Leopard atm, will there be any problems uploading all the info since the new computer will be running Snow Leopard, and the backup was made through Leopard?
    That's what +Setup Assistant+ is all about; it transfers everything except the old version of OSX.

  • Another question about running old programs on new macs

    I'm a little confused and was wondering if someone can help me out.
    From what I've read I cannot find any options for me to run an old programs for OS with my intel-based MacBook. Just in case I've tried downloading a bunch of different things (OS 9.2.2 which won't run, sheepshaver which I can't figure out how to use even it it might work). IS there anything that I can do?

    Welcome to Apple Discussions!
    1. Buy an older PowerPC Mac used or refurbished as my FAQ* explains how to do:
    http://www.macmaps.com/usedrefurbished.html
    2. Contact the developer of the said software and ask a Mac OS X version be published of their software.
    3. Politely ask Apple develop a virtualization program through AppleCare's Customer Relations department, http://www.apple.com/macosx/feedback/ and if you want a free developer account go to http://bugreporter.apple.com/ and submit it as an enhancement request.
    4. Tell us what software you want to run that you found is 9 only, and maybe we can tell you an alternative that can open the same documents, play the same style game that is Mac OS X native, or will run under Windows or Linux on your Mac?
    - * Links to my pages may give me compensation.
    Message was edited by: a brody

  • Old Toad, question about your demo website and simple-viewer.

    This is for Old Toad. I checked out your demo site which is awesome. I read the tutorial,
    *Examples of SimpleViewer and Flash Album Exporter Slideshows (plugins for iPhoto)*
    *ADDED USING HTML SNIPPET AND IFRAME*
    This was great but I am still running into a roadblock. The issue seems to be that in the URL that is given on your demo page...
    *http://web.me.com/youraccountname/slideshow folder/index.html*
    ....it says to enter my account name (which I did).
    I am uploading the simple-viewer folder to my iDisk using the Go menu but inside of the Web/Sites folder there is no folder called Slideshow Folder. So am I right in thinking that the URL has nothing to point too because that folder isn't there? Why isn't it there? And is there anything I can do to solve this? Is there another place the simple-viewer folder should be on my idisk?
    Any help would be appreciated, Thanks!

    How did you resolve this? I am almost at breaking point trying figure it out?

  • Tips on how to get an old Toshiba up and running

    Hello, I found a Toshiba Laptop Satellite CDT330 and was able to get Windows 98 on it.  However, I cannot go online nor can I get it to recognize any USB. What are some steps I could take in order to update my laptop. Is getting it online first considered priority so that it can get updates easier? if so, How can I get the laptop to work online?  It has a modem and ethernet card installed but neither work. Is it possible to hook it up via my home pc? any help will be appreciated, thanks!
    -ally
    Solved!
    Go to Solution.

    USB beyond a mouse might be iffy.  If you've got 98SE, you'd have a better shot at it doing _something_
    As for the network card, that's probably a matter of finding drivers.
    That and making sure the BIOS setting for the card slots matches up with the card type.  Try going into the BIOS settings (press <Esc> as you power up the computer) then look for the PC Card Slot settings and try the various options, I think you should have Auto - PCMCIA - Cardbus, although it's been a few years since I looked.
    For some of those machines, the Auto setting didn't always work, so it's possible that you may need to set it to the PCMCIA or Cardbus settings depending on the type of network card you have.

  • Very basic noob question about understanding class creation

    After learing some procedural scripting I just started with understanding OOP and have a problem with a basic stuff like this. Why my Try.as below is not working when I type Try(1); in the main file. Output says: Type Coercion failed: cannot convert 1 to Try
    package {
        public class Try {
            public function Try(some:Number) {
                some += 1;
                 trace (some);

    use:
    var s:Try = new Try(3);

  • Question about running explain plan

    I tried to run explain plan for a simple query, just to familiarize myself with how to do it. (I have another query that's taking a long time, and I've never run explain plan before). I got an error, googled it, and discovered I had to run the file at @%ORACLE_HOME%\rdbms\admin\utlxplan.sql first, to create the Plan_Table. Well, I tried to run that file and I get the error that I don't have priveleges on the tablespace. This really doesn't surprise me, as my access is read-only. Is there any way around this? I don't know a whole lot about databases, so forgive me if these following questions are dumb, but...
    1) is that file basically trying to create a table (called Plan_Table) within the schema I'm in (the only schema I have access to)?
    2) can my company's DBA run that file for me to create the Plan_Table?

    What version of the database are you on?
    You can get run-time execution plans from V$SQL_PLAN. You will need permission to read the V$ views. First find your query in V$SQL_PLAN (you can do a text search; putting a comment in like '--my_query' can help), then join to V$SQL_PLAN to find the query plan that that query used - join by the ADDRESS and HASH_VALUE columns.
    Otherwise, see if you can get insert/update/delete access on just that one table when your DBA creates it
    Good luck.

  • Question about WEBAPI URL commands

    Hi,
    In Visual Composer I'm making a drilldown from table 1 (output from  BW query 1) to table 2 (output BW query 2, but same filters as query 1). In my first table I have many keyfigures, in my 2nd table I just want to display that keyfigure with more detail based on the selection from query 1.
    Since I can't filter on keyfigure level in VC itself I need one WEBAPI (url command) to do one additional filtering since I don't want to show all keyfigures in query 2 / table 2. I have been testing this first with supplying the WEBAPI string with the fixed (hardcoded) values and this works fine. It looks as follows :
    'FILTER_IOBJNM=44RHE9MINFGXEBEXOI7S7UKE6;FILTER_VALUE=44VSUXQJNO2MG4CLOAF5M503I
    The first string is the name of my keyfigure structure in my query, the 2nd string is the technical name of the keyfigure on which I want to restrict. Like it said, supplying the command url values hardcoded words so I thought i was finished...
    Now I wanted to pass the right selected value from table 1 via the VC in the FILTER_VALUE field.
    It looks as follows now :
    'FILTER_IOBJNM=44RHE9MINFGXEBEXOI7S7UKE6;FILTER_VALUE=@KF_key'
    But this doesn't seem to work although @KF_key contains the right value. KF_KEY should give the right technical keyfigure name.
    Am I using the right syntax in the FILTER_VALUE part ? I have seen some topics on this forum where people also use the & symbol in some parts but I don't get it up and running
    thanks
    Message was edited by:
            Double U

    Suddenly it works.
    The correct syntax :
    'FILTER_IOBJNM=44RHE9MINFGXEBEXOI7S7UKE6;FILTER_VALUE=<b>'&@KF_key&''</b>

  • Question about "run application once" semantics...

    Hi to anyone still out there. We're still using ZfD 3.0SP1a with the
    latest NAL patch (10.4.2002). Things basically are working but we're
    redoing our software distribution strategy to try and streamline things
    and squeeze a bit more life out of the platform. As part of the process, I
    moved away from force run MSI installs by user for basic stuff to force
    runs which call msiexec /i some.msi (or setup or whatever...) and
    associating these to OUs. I was planning to use the app version number to
    force redistribution whenever I put up newer MSIs or installer files. In
    testing, I noticed that msiexec was running on each login for each package
    and that wasn't what I wanted. I want the installers to fire off once,
    then again whenever I bump the version number. So I checked off "Run
    application once". Now the apps run only once but do not redistribute when
    I up the version number. If I use nlist to query eDir, I can see the
    attribute "zenappDisconnectedVersionNumber" has been incremented in the
    directory but looking at HKLMSoftwareNetWareNAL1.0Distribute*, the version
    number for that app never moves and the software isn't redistributed. The
    apps are all set to "wait on force run".
    Am I misunderstanding the use of this attribute? I suppose I could leave
    "run application once" off and set up some registry flags to control
    distribution or even just let them run on each login but I want to do this
    in the cleanest fashion. Any suggestion about what I might be doing wrong
    or how to work around/troubleshoot this issue? Thanks in advance!
    Michael

    Thanks, guys. I have a follow up question/issue related to this
    environment. I am pushing out a handful of apps associated with
    workstations via OUs (force runs which call msiexec or a setup). I've
    tested this a hundred or more times in my own OU but in several other OUs,
    I've now run into this issue when NAL kicks off the first app install. I
    get a WMRUNDLL.EXE error and no software distribution occurs. The text of
    the Dr Watson error is:
    The application, WMRUNDLL.exe, generated an application error The error
    occurred on 11/07/2007 @ 12:54:26.495 The exception generated was c0000005
    at address 004AED14 (NWAPPCreateFullObjectName)
    In setting up a few machines today, the first ran fine, the next 3 got
    this error. I've synched up everything in PUBLIC across all servers; all
    NAL related files that I'm aware of (that show via NAL's "more" button)
    are from the last update for ZfD 3, dated 10-04.2002.
    I did some searching and the little I was able to find seemed to point at
    a particular version of wsreg.dll. Wasn't able to find any particulars
    though. Fwiw, wsreg32.exe and wsreg.dll in PUBLIC were dated 6.26.2001. I
    swapped in a wsreg.dll from 10.22.2002 which I believe was part of the
    49SP2 client. That apparently hasn't helped. Worst of all, it seems
    intermittent or arbitrary - I can't really see what's different between
    the environment I'm currently in that is experiencing the error and the
    one in which it's working. It's the exact same base image, exact same
    PUBLIC dir... the only difference is that it's not my home OU. I checked
    workstation policies in the other OU and they appear to be the same as in
    mine.
    I thought I was past this as the PUBLIC sync seemed to clear things up at
    another location but now I'm seeing it again. Have you seen this before?
    Any suggestions? Thanks a lot!

Maybe you are looking for

  • Ibook g4 video capabilities

    my video is an ATI Mobility Radeon 9550 , and i would like to know if it could be improved from 32mb to 128mb. But i got one thing in my mind, i think the video is not shared, its dedicated. Could it be possible to make it shared video memory, becaus

  • Support needed for my Satellite U840W-107

    Hi guys! Since it is impossible to contact Toshiba Bulgaria in any possible way I am forced to use this forum. Can someone tell me how to solve an issue with the Intel Management Engine Interface 9.5.24.1790? Upon starting the computer I am prompted

  • SQL 2005 x64 poor performance after migration from SQL 2005 x86

    Recently We've migrated SQL 2005 x86 SP1 Enterprise running on Windows 2003 Enterprise to new hardware where is running Windows 2008 SP2 and SQL 2005 x64 SP4 with CU3. In the work day, there are sometime SQL excpetions like this below. On other hand

  • Mail Update Issue

    Hi, I have my Mail account set up and everything but there is only one problem I'm experiencing. I currently have the setting to check for mail "Every 1 minute" but I can have my laptop on for hours at a time and I get the emails sent to my phone but

  • Exam 1Z0-007

    I have appeared "Exam 1Z0-007 Introduction to Oracle9i: SQL" on 2008. After that I was unable to appear other exams related to Oracle certification. Now if I appear "Oracle Database 10g: Administration I 1Z0-042", then will I be able to get Oracle Ce