How execute a command on the Console from our prgm

can any body let me know how do we execute a command on the Console from our prgm . . on a windows platform ..
eg. a simple commant like "dir" or "cls" . . or whatever . . .
i heard that it can be done by calling the native methods . . but how is that done???

thankx for the quick reply . .
for instance i wanna take a file from my local machine . .
a c++ source code . . (myfile.cpp)
i want to execute that on the prompt using c:\> tcc myfile.cpp
and all these i mean reading the file from the HDD and giving it to the console and getting the output everything should be done by my prgm . .
so basically the command which i usually run on the prompt i should be able to pass that command from my java prgm to the console and get that thing executed . .
i hope i am clear now .. .

Similar Messages

  • How to run form in the background from command line

    please can anybody tell me to
    how to run form in the background from command line
    vishal

    Ummm....Oracle Forms is a foreground runtime kind of thing. What you want is a database procedure (or an OS utility - it depends on what sort of processing you want to do in the background).
    Cheers, APC

  • How to run Content DB Client console from JDevloper

    Hi
    I have downloaded all the content db client console pages from server. Please let me know how to run the console from my local machine thru jdeveloper. When i tried to run it is giving some runtime exceptions.
    Sep 10, 2007 10:46:07 AM oracle.ifs.fdk.http.HttpNodeManager
    INFO: Creating HTTP Node ...
    07/09/10 10:46:07 Cannot create HTTP Node:
    oracle.ifs.common.IfsException: IFS-45061: Unable to create node
    oracle.ifs.common.IfsException: IFS-20016: Required parameters are null (either "Schema Name" or "Domain Name" should be non-null)
         at oracle.ifs.management.domain.HttpServletNodeUtilities.createNode(HttpServletNodeUtilities.java:243)
         at oracle.ifs.management.domain.HttpServletNodeUtilities.createNode(HttpServletNodeUtilities.java:156)
         at oracle.ifs.fdk.http.HttpServer.createNode(HttpServer.java:162)
         at oracle.ifs.fdk.http.HttpNodeManager.contextInitialized(HttpNodeManager.java:37)
    Please let me know if there is any documentation for this.
    Thanks
    Ravi

    Hi,
    I built berkeley DB 4.4.20 and use it from Jbuilder2005, I noticed that tha size of Jbuilderw.exe consumes about 96MB of memory and the size of javaw.exe consumes (in my application) about 63MB. so I thought that if I load the jdk1.4 only ( by running my code from the command line) this will save memory because not all compenents of Jbuilder will be loaded into memory. to do so, I copied the directory jdk1.4 from inside jbuilder2005 and put it on c:\, then I build berkeley DB using visaul c++ 6.0 and filled the following pathes in the include directory(tools-->options->directories)
    c:\jdk1.4\include
    c:\jdk1.4\include\win32
    and in the executable files directories I added the following path:
    c:\jdk1.4\bin
    then I set the classpath from inside windows (server2003), and I set the path as well but when I run the java class from the command line, I recieved message like "the packege com.sleepycat.db " not exist
    thanks

  • How can i get all the users from weblogic server?

    how can i get all the users from weblogic server?
    i have configurated a LDAP server using iPlanet and
    in weblogic server console i see those users from LDAP
    server. but how can i get all the users in my program
    from weblogic server instead of LDAP server?
    BTW,how to configure a RDBMSAuthenticator and what should i do
    in Oracle? which tables should i create? and how are their architectures?
    Thanks
    Daniel

    BTW, i use weblogic platform 8.1
    "Daniel" <[email protected]> дÈëÓʼþ
    news:[email protected]..
    how can i get all the users from weblogic server?
    i have configurated a LDAP server using iPlanet and
    in weblogic server console i see those users from LDAP
    server. but how can i get all the users in my program
    from weblogic server instead of LDAP server?
    BTW,how to configure a RDBMSAuthenticator and what should i do
    in Oracle? which tables should i create? and how are their architectures?
    Thanks
    Daniel

  • My aperture library lives on an external hard drive that is corrupt and I can not locate the library. I do have it backed up with TM. How do I safely restore the library from TM to my laptop? I am using the newest version of aperture on my macbook pr

    My aperture library lives on an external hard drive that is corrupt and I can not locate the library. I do have it backed up with TM. How do I safely restore the library from TM to my laptop? I am using the newest version of aperture on my macbook pro.

    Hello Sandra,
    The article linked below details how to go about restoring items from Time Machine in Snow Leopard.
    Mac OS X 10.6: Recovering items using Time Machine and Spotlight
    http://support.apple.com/kb/PH6379
    Sincerely,
    Allen

  • When creating a book how can I get all the photos from an album to show up in the order they were in the album?

    When creating a book in iphoto, how can I get all the photos from the album I want to use to show up in the order that they are in the album?  When I tried to use the option to add my own photos instead of having the program "flow" them, they showed up all mixed up.

    iPhoto puts them in the book in chronological order.  So to get your photos from an album into an iPhoto book in the same order you will need to use the Photos ➙ Batch Change ➙ Date menu option and set them all to the same date with a 1 minute time difference between each. 
    OT

  • The display on my MacBook Pro from 2007 finally gave out, how do I transfer all the data from the old one onto my new one?

    A week or so ago, the screen on the Macbook Pro I've had for 5 years went permanently black. The screen itself still works, but it's just all black. Went from flickering/flashing to black. I didn't have any kind of warranty on it or anything, and in addition to all of the other things about it that needed fixing, it seemed like it'd just be cheaper to get a new Macbook Pro.
    My question is: How do I get all the stuff from the old laptop to the new laptop without having to use the old laptop's display? Is there a cable I can use to connect the two, and I can just access the old one from the new one?

    FireWire between the two (get appropriate 800-800 or 400-800), Target Disk Mode on the old one, appears as an external disk on the new one. Drag everything over, or use Setup Assistant if first start of new one, or plain old Migration Assistant. You really don't need a display to see a prancing FireWire icon, do you?
    http://support.apple.com/kb/HT1661
    http://support.apple.com/kb/HT4889
    (with the added advantage that since you ain't booting anything off the drive, can turn the Mac on or off at will without risking data corruption on the drive)

  • How can I copy all the comments from my picture/s in fotostream to my picture/s in my library?

    How can I copy all the comments from my picture/s in fotostream to my picture/s in my library?

    Hi, first, you should prevent the iTunes library auto sync with iPhone: Launch iTunes > click Preferences... > click Devices. In the window, check the option 'Prevent iPods, iPhones, and iPads from syncing automatically'. Next, connect your iPhone with your computer via the USB cable. Click the mini menu for iTunes on the very top left and click the option 'Show menu bar'. After then you can see iTunes File, Edit, View, Control, Store and Help menus on the ribbon. Click File > Devices > Transfer purchases from (your iPhone name). You can also access to the File menu by holding down Alt (Option on Mac), Shift and F keys. This is how to get your iPhone purcahsed song transferred to iTunes Library.

  • How do I move all the photos from the i-photo library on one account to the i-photo library on another account?

    I have recently bought a new mac mini running Lion, and yesterday I migrated an account off an older machine running Tiger.
    I want to delete the older account from this machine as it is causing some problems with i-cloud, but I want to transfer the photos first and add them to a different account on the new computer.
    So my question is How do I move all the photos from the i-photo library on one account to the i-photo library on another account?

    Copy the iPhoto library from the old Mac to the Desktop of the new one.  Then download the paid version of  iPhoto Library Manager, which is now compatible with Mt. Lion, and use it to merge the two libraries into a new, third library.  This will preserve the two libraries in case the merged library isn't to your liking. 
    Here are screenshots of iPLM's coping and merging preferences:
    When you're satisfied that the new, merged libraray is complete and working OK you can delete the two earlier libraries.
    OT

  • How do I get all the songs from an album to show in the album view?  Currently, if an album lists the artist plus a guest artist, those are shown separately and appear to be two different albums on my iPod.  How do I get all the songs on that album togeth

    How do I get all the songs from an album to show in the album view?  Currently, if an album lists the artist plus a guest artist, those are shown separately and appear to be two different albums on my iPod.  How do I get all the songs on that album together on my iPod?  If the album is a collaboration wtih many artists, each sond may appear as a separate album.

    I used to have this problem.
    First, you need to go back on iTunes
    you need to go to each of the songs that are having this problem
    Click the album so all the songs drop down
    Right click the songs that have this problem
    Click ' Get info '
    Click the tab that says " info '
    The box that says ' album artist ' should probably be empty (correct me if I'm wrong)
    Click it and type the artist of the entire album, NOT the songs guest artist
    as such,
    ARTIST
    JAY-Z Feat. Justin Timberlake
    ALBUM ARTIST
    JAY-Z
    These should be separate for each artist
    If you write the same album artists for each song by that artist, all the songs should be on 1 album

  • How do I put all the songs from a compilation album into the same /album/folder in Itunes v12

    How do I put all the songs from a compilation album into the same /album/folder in Itunes v12 i know in other versions it was via get info but as all of the tunes have the same album title , I am not sure what tio change to achieve this ?

    I don't see your screenshot but I assume you're starting with something like this, i.e., the compilation split into multiple albums:
    If you select all the items that you want to be in a single album, right-click > Get Info you'll see this:
    As you say, in iTunes 12 you don't see a field to enter a distinct Album Artist value.  You can, however, address this by clicking the Add Field button and selecting Album Artist:
    That makes the field available in the metadata dialog so that you can enter the required value:
    You can also show the pre-iTunes 12 version of the dialog by holding the SHIFT key when selecting Get Info - this allows you to enter the Album Artist directly:

  • How can I turn off the sound from the original midi  or audio tracks when I turned on the duplicate tracks for editing ?

    How can I turn off the sound from the original midi or audio tracks when I edit or listen to the duplicate tracks in Logic Pro 9 ?
    I'm using iMac desktop with Mac OS X Version 10.7.3. Pls advise.

    Dan,
    It sounds like one of your preferences has changed.
    Go to preferences > audio > general, and make sure "track mute/solo" is set to "CPU saving (slow response)". It is probably set to "Fast " at the moment.
    This setting (fast) basically causes immediate muting from the channel strip while your song is in play. This is because the audio is still being read from the hard drive, but the channel strip is simply muted.... like a hardware mixer. When set to "CPU saving", the audio from that track, when muted, is actually stopped from streaming from the hard drive, but there is a couple second delay before the audio is actually muted.
    One would think that the fast setting is generally preferable, except when you need to do what you are doing. The only way to keep duplicate copies of channel strips acting independent of one another is to leave this setting on the "CPU saving" setting.
    Hope that helps

  • How can I delete all the email from a user's account?

    I have a user account with a huge amount of mail (around 50K messages) that Apple Mail can't deal with... it constantly hangs and/or crashes whether I use POP or IMAP to try and delete all the mail from the client.
    How can I delete all the mail from the mailbox on the server? I don't want to delete the account entirely, I just want to empty everything out of it.
    Thanks!

    sudo -u _cyrus /usr/bin/cyrus/bin/ipurge -d 0 -f user/mailboxname
    HTH,
    Alex

  • How can i move all the song from my iPod to my new mac pro laptop?

    how can i move all the song from my ipod touch to my new macbook pro?

    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
      Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • How can I copy all the files from my iMac to an external drive so they remain as 'regular accessible files'? I want to clean my dive

    How can I copy all the files from my iMac to an external drive so they remain as 'regular accessible files'? I want to clean my dive

    You can use a program like Carbon Copy Cloner.  It will clone your HD to the external.  The format is the same as your internal drive and you can boot from it using Option key at boot time.
    http://www.bombich.com/
    Regards,
    Captfred

Maybe you are looking for