Any way to close the DOS window ?
Is there anyway to close the DOS window, after executing a DOS command in a GUI Java program ?
I keep getting "Please press any key to continue..."..I don't think I can use the System.exit in a GUI Java program?
Yes.
Process p = Runtime.getRuntime().exec(...);
PrintStream out = new PrintStream(p.getOutputStream(), true);
out.print("a");You get the output stream of that process and print an a (which I guess will work just like you pressed a key). I don't know if there has to be a delay before you write this character. If you send it before it has written "Press a key ..", then it might not work. In this case you can add a line with Thread.sleep(1000); to sleep for 1 sec in this example, just before you execute the print statement. Or you can get the InputStream from the process, and read everything it sends and check if/when you get the "Press a key .." text:
PrintStream out = new PrintStream(p.getOutputStream(), true);
BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
String s;
while ((s = br.readLine()) != null) {
if (s.startsWith("Press a key")) {
break;
out.print("a");something like that..
There might be cases where you don't get a "Press a key" back if the DOS window is big enough to hold all the information (it is possible to change the buffer for DOS windows so they can hold more than 25 lines).
Similar Messages
-
Any way to close the MacBookAir 2011 without it going to sleep
Any way to close the MacBookAir 2011 without it going to sleep !!! bec my macbook air conect with monitor when i close it ! moitor is close too !!
really the same problem ! monitor close too
and i get this error monitor is samsung Syncmaster 2043NW -
Are there any way to close the warning "cellular data is turned off" ?
the warning says "turn on the cellular data or use wi-fi to acces data"
I am not trying to access any data requires the internet connection.
how can I turned off this warning ?The iPhone is designed to be constantly connected. The only way to avoid this warning is to make sure you have cellular data turned on or have a constant WiFi connection.
There is one other option, but that's to pur the phone in airplane mode, which means no phone calls or text message either. -
Is there any way to get the finder window spinning wheel status indicator back?
In Mac OS X Lion the bottom finder window frame is gone. Consequently the spinning wheel status indicator in the lower right corner is also gone. How do I get the status wheel back so I can tell whether the window view is still loading or hung?
pixelthinker wrote:
In Mac OS X Lion the bottom finder window frame is gone. Consequently the spinning wheel status indicator in the lower right corner is also gone. How do I get the status wheel back so I can tell whether the window view is still loading or hung?
Up top menu > View > Show Status Bar
Pete -
Seems like when FF restores a session, it restores the session of the last window open. If you use tabs as a way of keeping a list of things to do or look at, you have to be careful if you have a second window open to close the second window before your main one, or you will lose your list. I'm absent minded though and do this all the time. The only way to prevent this is bookmark all my tabs once a day, but I tend to forget to do even that. Any workaround for this?
When you re-open Firefox and choose Restore Session, by default it picks up your most-recently-open window, and the other windows should then show up in Recently Closed Windows.
The Firefox add-on Session Manager lets you manage how many closed windows and closed tabs are saved, in case it's not enough. -
i have just closed an important window and i really need to recover it, but is not the last windou closed, so is not possible to get it pressing ctrl + shift + T, is there any way to recover recently closed windows?
Hi missionario,
Try going to ''History > Recently Closed Windows''. There is also an option for ''Recently Closed Tabs''.
Hopefully this helps! -
If I use an SD Card on both the windows 7 and Mac OS (using bootcamp), is there any way to see the data seen on the Mac OS side while using the Windows OS?
Windows Aero style uses a different background image than Mac:
Windows Aero:
#nav-bar {
background-image: linear-gradient(rgba(253,253,253,0.45), rgba(255,255,255,0));
Mac:
#nav-bar {
background: url(chrome://browser/skin/Toolbar-background-noise.png),
linear-gradient(hsl(0,0%,93%), hsl(0,0%,83%));
I can't test hands on, but you might be able to clear that OSX "fog" using a rule such as:
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#nav-bar, #PersonalToolbar {
background-image: none !important;
background-color: transparent !important;
This could be applied using the Stylish extension or by creating/editing a userChrome.css file. -
I have downloaded a Audio Book from Itunes Store, but rencently i have had to reinstall windows, is there any way to re-download the audio book from Itunes, i know that the audio books are one time downloads, but is there any way to get the audio book back as i have already paid for it once and i would not like to pay for it twice.
If you haven't got a backup copy and if it's still in the store then you can try contacting iTunes support and see if they will grant you a re-download (there is no guarantee that they will) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page
-
Is there any way at all to install Windows 7 32 bit onto a MacBook Pro 13 in Retina Late 2013? The windows software I need won't run on Windows 7 64 bit.
Not using Boot Camp, but you should be able to using virtualization software such as Parallels to run Windows concurrently with OS X.
-
Ok so I cant open my Itunes due to Windows Error 2 and the message says to uninstall and re-install Itunes but I'm pretty sure that would wipe the library right? Is there any way to fix the problem and keep my library?
Hi neffn!
I have an article for you that can help you go through that process of uninstalling and reinstalling iTunes. If you have Windows 7, you will want to see this article:
Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
http://support.apple.com/kb/ht1923
and if you are using Windows XP, you will want to reference this article:
Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
http://support.apple.com/kb/ht1925
Note that, as it says in those articles:
iTunes Store purchases or songs imported from CDs are saved in your My Music folder by default and are not deleted by removing iTunes. While it is highly unlikely that you will lose any contents of your iTunes Library when following these steps, it is always a good idea to ensure that your iTunes library is backed up. If you're unsure how to backup, see iTunes: Back up your iTunes library by copying to an external hard drive.
Thanks for using the Apple Support Communities. Have a good one!
-Braden -
I need to use the infinity symbol in Illustrator but it is not available in Illustrator in CS5 running on Windows 8.1. It is available in Illustrator 10 running on Windows XP. Is there any way to access the INFINITY character under fonts in Illustrator in CS5 (Windows 8.1)?
Thank you for your suggestion. But I do not know how to access UNICODE. How do I download Unicode fonts?
Also I have a problem working copying illustrations from Illustrator launched from CS5. The illustration does not copy correctly into FrameMaker 10 with Windows 8.1. However, the illustration copies correctly if I use Illustrator 10 in my computer with Windows XP. How do I solve this?
When I called Adobe I was just told that they do not support CS5. -
recently "lost" a purchased song, (Plus the accompanying artwork) from my i-tunes library, after upgrading my O.S. from windows XP to windows 7.
Is there any way to get the original song back, or, at least, re-purchase it?... I tried to do the latter, (It's still available in the itunes store) but, when I clicked on the buy link, I was informed that I had already bought it and was only given the option to, either, copy the link or send it to Facebook/Twitter
I also, inadvertently, deleted a couple of default playlists (Notably recently added) while attempting to get the song back.
Can someone out there, please, help me out. with the solution(s). (preferably step by step if possible, as I'm a bit of a Homer Simpson when it comes to this sort of thing) .. Doh!! :-(Hello, MrKite549.
Here is an article that will walk you through download any past purchases that are missing from your iTunes library.
Downloading past purchases from the iTunes Store, App Store, and iBooks Store
http://support.apple.com/kb/ht2519
Cheers,
Jason H. -
When I add a new bookmark, and the (star) Page Bookmarked window appears - is there any way to expand the size of that window so that I can see my entire list of folders when adding a new bookmark to an existing folder? The endless scrolling technique is far too tedious when trying to add a new bookmark, because the window is simply too tiny. Is there maybe a plug-in that will let me grab the corner of that window and re-size it? Thanks!
I suggest you install the "Add Bookmark to Here2" extension, then you can expand the the list but you will not see the bookmark itself in the list if that is what you wanted. At the top you have three major folders you can select one of them and scroll up and down. Below that you have your most recently used folders and you can select one of them instead and scroll up and down. You can see the folder the bookmark is in -- they get added to the bottom
If you really want to see the bookmark within the folder the same extension allows you to bring the bookmark to the folder from say the bookmarks sidebar that is why it is named as such. I use it but mainly i use the dialog.
Please continue reading about bookmarks and some related extensions at
* http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
* https://addons.mozilla.org/firefox/addon/add-bookmark-here-2/
* http://dmcritchie.mvps.org/firefox/firefox.htm#addbookmarkhere2
* http://dmcritchie.mvps.org/firefox/kws.htm
If you are not using tags at all, you can remove a whole lot of confusion by removing them from the dialog via the extension. -
I have a spelling app that is stuck on the screen - it doesn't have any way to close it out, and when I split the screen and go to "Finder" to remove it, it says that it can't, because the program is still open. Please help.
Paul,
I'm sure this is the correct answer, but just switched to Apple, so am just an apple seed at this point! :~)
How do I get to the Apple Menu?
Thanks!
KL -
Any way to get the old behavior of "Hyperdraw Other"
In Logic 4.7 one could type ^Command-O to bring up a dialog, then simply type in a controller number and RETURN. That's all you needed to do to hyperdraw any arbitrary controller.
In Logic 7 you type ^Command-O which brings up a long list. No text entry box. You are then forced to use your mouse to scroll waaaay down the list to the controller you want. To add insult to injury you are then forced to use the mouse again to click on the close box to close the window. Yes, this is one of those nifty new-fangled windows without a "CLOSE WINDOW" key command.
Is there any way to replicate the old behavior of Hyperdraw >Other?
I don't want to rant but it seems to me that the speedy interface of logic 4.7 has given way to uber-bloat in logic 7. I hope this isn't the general direction things are going.Hi K,
⌘ W
Yes, it does close the floating window on my system.
Coming fresh off the transition from 4.7 the distinction is vivid. You may not remember
Probably not, since I made every upgrade along the way, though skipped a lot of V5's primetime.
In my opinion once you start adding up a bunch of "nowhere near as terrible"s and your forced to do them again and again day after day they add up to one big terrible.
Agreed - but some adaption is of course to be expected (at least, IMO). Some is for the better, some is for the worse. Overall, I find the workflow faster with 7 than 4 but again, my memory is not as vivid as yours.
Cheers,
J
Maybe you are looking for
-
Can I sell my first-gen iPhone when I buy a 3GS?
I plan on buying an iPhone 3GS. I understand that I can use my old phone as an iPod touch, but I don't need it. I'd rather try to sell it and recoup some of the cost. Some questions: -- Does anyone know how do go about doing this? Is it possible? --
-
TS5296 Battery life is really bad on MacBook Pro with Retina Display 15'' late 2013.
Using only Safari, iTunes and a couple of other apps - Dont worry, i'm not using Chrome, as it's a serious battery killer! - on 50% brightness and im getting around 3-4 hours of battery life which is very disappointing. Any of you with the same Mac m
-
HT201365 How do I change settings so I do not have to enter pass code all the time?
How do I change sttings so I do not have to enter pass code all the time?
-
How to make a duplicate of a photo
How do I make a duplicate of a photo that is on my mini
-
I've just installed Acrobat X into Windows 7
I can't close Windows 7 as Acrobat says there is a scan in progress...there isn't...any ideas? thanks, ann