Help!!!! How do I get the CD Tray to open using Java
Please I need some help.... A bit line of code that will open the CD tray for a windows OS.
Cheers
Rylan
I don't think there's a suitable java API.
Try using the following vbscript...
'declarations ( put in module )
Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
'actual code: put this in a command button or something . .
Dim lngReturn As Long
Dim strReturn As Long
'To open the CD door, use this code:
lngReturn = mciSendString("set CDAudio door open", strReturn, 127, 0)
'To close the CD door, use this code:
lngReturn = mciSendString("set CDAudio door closed", strReturn, 127, 0)
Similar Messages
-
I can not get ny updates and therefore not use Java, as it only run updates for MAC 10.7. and later. How do i get the updates to install and use JAVA ?
In Snow Leopard you update Java from Software Update (in the Apple menu). You can check your version by opening Terminal and typing
java -version
(don't get creative and type anything else)
The latest version is 1.6.0_65. -
How do you get the disc tray to open when ther is a software boot up problem?
I just downloaded Motion 5 software and it froze my screen. I panic and pressed the power button for a foced shut down. Now my computer boots up to a blank blue screen. Prior to this I made some system prefrence chages to the desk top.Don't remeber what they were though. Any help would be greatly appreciated.
StuartIf your computer no longer starts up then you will need to reinstall Snow Leopard:
Reinstall OS X without erasing the drive
Do the following:
1. Repair the Hard Drive and Permissions
Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
2. Reinstall Snow Leopard
If the drive is OK then quit DU and return to the installer. Proceed with reinstalling OS X. Note that the Snow Leopard installer will not erase your drive or disturb your files. After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
Download and install the Combo Updater for the version you prefer from support.apple.com/downloads/.
Five ways to eject a stuck CD or DVD from the optical drive
Ejecting the stuck disc can usually be done in one of the following ways:
1. Restart the computer and after the chime press and hold down the left mouse button until the disc ejects.
2. Press the Eject button on your keyboard.
3. Click on the Eject button in the menubar.
4. Press COMMAND-E.
5. If none of the above work try this: Open the Terminal application in your Utilities folder. At the prompt enter or paste the following:
/usr/bin/drutil eject
If this fails then try this:
Boot the computer into Single-user Mode. At the prompt enter the same command as used above. To restart the computer enter "reboot" at the prompt without quotes. -
How can I start from a CD if I can't get the CD tray to open?
My PowerMac won't start. I want to insert a bootable CD into it, but I can't get the CD tray to open. Pressing the CD button on the keyboard does nothing.
I remember on the old iMacs with a CD tray, you could push a paper clip into a hole to get the CD tray to open. Is there anything like that on a PowerMac? Or any other tip that I can use so I can open the CD tray?Hi, Dunestrider -
Try this -
Restart or boot, immediately press the Option key and keep it held down. That should bring up Startup Manager, a bright blue screen with icons for available boot volumes.
If the CD drive is empty at this time, press Command-. (Command-periodkey) - this is an instruction to the Mac to open the tray. Then insert your disk and wait a bit for it to spin up and get read.
Old style Startup Manager - then click the circular arrow on the left - this instructs the Mac to rescan buses. Your bootable CD should then appear onscreen. Click it and then click the straight arrow.
New style Startup Manager -
http://support.apple.com/kb/HT1310
- you will probably need to restart after the disk is in, holding down the C key to force a boot using the CD as the boot volume. -
How can i get the list of all tcode used by user of particular module
Hi,
How can i get the list of all tcode used by user of particular module (e.g FI , MM ,PP) within year .
Regards
VikramLogin to your SAP System
Run TCode SE16
Type Table Name : TSTCT
Press F7 Key (Table Contents )
Go to Settings in menu bar
Select User Parameters
Under Keyword select Field Label and press green check mark
Select your criteria in Data Browser and execute
You will see all t codes in there
Regards,
Yogesh -
How do I get the apple wireless mouse open to replace the battery?
How do I get the apple wireless mouse open to replace the battery?
Thank you! I am 71 also, and broke a fingernail trying to get the thing open, thought there must be a trick to it. After many attempts, when I had your reply it opened right up. I think Apple delights in making people look stupid. Love the machines, but dislike the smooth surfaces with no obvious switches to run the machine itself. Computer is still not "discovering" the mouse, so there may be some further problem to be resolved. The whole setup worked fine until a few days ago when the computer started to lose the mouse now and then. I thought probably the mouse needed batteries, as I just had replaced the contemporary batteries in the keyboard.
I'm retired, too, in Portland, Oregon, USA, and write poetry (though not for advertising agencies), get lot of rejections and an acceptance about once a year.
<E-mail Edited by Host> -
When I open "mail" all that opens is the gray ribbon on the top.I have to go to "Mailboxes/inbox" to get it to aspen. What happened? How do I get the full screen to open when I click my "mail" icon like it used to?
Move your cursor way over to the right side of the window. There should be a thin bar. when you hover over the left side of the thin bar, the cursor will change to a vertical bar with an arrow sticking out the left. Click and drag to the left.
-
Help me out to get the jar files for FileUpload using MyFaces.
hi,
Can anyone help to get the jar files for FileUpload using MyFaces.
I want myfaces-extensions.jar and commons-fileupload-1.0.jar.
Thank you.you can't control the speed of a for-loop.
you can remove your code from a for-loop and use a function to execute the code in your for-loop and you control how frequently you call the function. -
How can I get the orclownerguid (unique user number) in Java Portlet?
Hi,
I find a unique number for each portal user in OID, it calls orclownerguid.
And I try to obtain this number in my portlet Java with the JPDK.
How can I get the orclownerguid in Java Portlet with JPDK?
thanks
regards
jerome laforgeHello,
I just realized that I missunderstood your question.
We have several way to pass (and send) parameter to a portlet:
- OracleAS Portal page parameters that allow the browser user to define the way the parameter is send to the portlet
- generic URL parameter (public parameters)
- private paramter (a parameter that is targetted to a single portlet instance)
In you case, you can use public parameter, but you have to explicitly says that your portlet consume URL parameters, so set the passAllUrlParams tag to true in the provider.xml file.
Also I invite you to read the sample we have in the PDK that show how to use private parameter and page/portlet parameters, and the associated articles you can find on http://portalstudio.oracle.com
Regards
Tugdual Grall -
Plz Help, How can I get the Information from the net conneted machine?
Suppose Person x has login on the network by using
dial-up network connection? I want to know that wheather he is on the network and get the data from his machine ?
Suppose I know his username/Password and phone no
for dial up...
Plz, suggest me how can I do this?
How can get information from that machine?
Thanks
PramodHi,
I dont know whether I understood your question completely.Anyway,let the users be X and Y and be on diff machines,
Since X is logging in using a dialup network the ip is allotted dynamically and so, Y cannot know X's ip till he logs in and tell Y about it explicitly. Workaround is that either X's or Y's ip must be constant/static or there should be another way that X know about the ip of Y each time he logs in.
If X's ip is static, Y can poll certain port at X where u's alpplication is running and if conn. is succ, after some authentication, get the information u want. For writing u'r own services there should be u'r own components at both ends, one requesting connection and other accepting. Please get back to me if more doubts or if I have'nt understood u'r problem fully..
regards Stallon -
I reinstall a new Hard drive. But I cannot open the DVD tray to install the OS? All I get the the ? in the folder when the computer turns on?
Hi copa1226:
Sometimes the best solutions are the manual ones. There is a mechanical fail safe built in to these devices, I have had to use this method several times myself, so ....
..... Try this:
1) Power off your mac pro.
2) With your finger, pull down the metal bezel on the affected drive.
3) You should now see the front plastic bezel on the affected drive, it is usually black or grey.
4) Look for a small pinhole somewhere on the front. It will have a very small diameter, about 0.5mm.
5) Yes it's there, all cd/dvd drives have one! Note: a small flashlight comes in handy here.
6) Straighten out a standard paperclip for about 2 -3 inches.
7) Insert the paperclip in the small hole and push, you will have some resistance, and then the drive tray will slowly push out about 0.5 inches or more.
8) Grab the tray and pull it out !!
9) You are done!
10) If you do this gently you won't hurt the drive. Boot up and the tray should automatically slide back in. You are good to go. -
How do I get the rowcount of target table using Sunopsis API in ODI 10g ?
Hi guys,
Actually I want to send an alert mail once interface is run from a package. I have included OdiSendMail alert which sends a mail once interface is run.
Could anyone please tell how to get the no of rows inserted in the target table from Sunopsis API.
I tried using <%=odiRef.getNbRows( )%> but this did not work for me. Since I'm a beginner, could you please help me out
This is my ODI send mail format
" Data population has been completed successfully at <%=odiRef.getSysDate( )%>
Total rows in target table are: <-- need some API code --> ''
Regards,
Clinton
Edited by: LawrenceClinton on Feb 25, 2013 8:53 PMHi
Create project variable with below details
Variable_name: Total_Row_Count
Variable Type: Refresh Variable
Definition Tab:
Datatype: Numeric
Action: Not Persistent
Refreshing Tab:
Schema: provide your Work Repository Schema and be
SELECT log.nb_row
FROM snp_step_log log, snp_scen_step step
WHERE log.nno = step.nno
AND step.scen_no =( SELECT scen_no FROM snp_scen_step WHERE step_name='<%=odiRef.getPrevStepLog( "STEP_NAME" )%>' )
AND log.sess_no = '<%=odiRef.getSession( "SESS_NO" )%>'low code
AND step.step_name = '<%=odiRef.getPrevStepLog( "STEP_NAME" )%>'
Note: Add this variable after interface step in your package (after the interface any where you can place), you can add this variable before ODISendEmailNotification Step in your package
Call this varciable *#Total_Row_Count* in ODISendEmail Notification
eg:
Data has been populated successfully at <%=odiRef.getSysDate( )%>
Total no of rows populated are : *#Total_Row_Count*
It will work
Regards,
Phanikanth
Edited by: Phanikanth on Feb 28, 2013 1:13 AM
Edited by: Phanikanth on Feb 28, 2013 1:14 AM -
How do I get the charging port cover open on my I-pad, so that I can insert the charger?
I'm trying to connect an Ipad to a USB charger (30 pin, I believe) there is a little black plastic cover over what appears to be the charging port. How do I get this to open ?
There is no charging port cover on the iPad. Do you have a case on your iPad? It may have a cover. If so, you'll need to consult any documentation that came with the case.
-
How t o get the sunject in reciever mail using mail adapter
hi all.
i had created a file to mail scenario .
in archive mapping program it was defined to which mailids of reciever side should be mailed and the body of the mail.
but i just want to know if there are any settings under reciever mail adapter to get the subject uner reciever mails and an increment value (the number of times that the mailget posted in reciever mails) to be displayed in subject line of mail after descryption of the subject.
waiting for great answer.
cheers.
seeta ram.Hi Seeta,
you have to use a UDF in which you define a Container
http://help.sap.com/saphelp_erp2004/helpdata/en/75/8e0f8f3b0c2e4ea5f8d8f9faa9461a/frameset.htm
http://www.erpgenie.com/netweaver/xi/mapping1.htm
You can make a counter which increments every time you call the UDF.
Use the UDF in your mail package with the subject.
Hope this helps.
Dominic -
How to get the Share Name in windows using java...
Hi....
i want to get the Share names of the shared folders in windows.
I used the command line tool "net share" to get it .But i can't extract the
share names correctly if the share name contains space.
Regards
~ Suresh GOf course there is, if the user running it has "root" privileges (actually root userid or groupid if the permissions have been changed), but if you are going to do that, then why use the lookup at all, simply hardcode it in the program.
If it is because you don't know how to do it, then I would say to find someone you know who can show you how. That is infinately easier than trying to explain the structure and purpose of the hosts file to you here.
Maybe you are looking for
-
SKProductsRequest never called
Hi, My app is close to be finished, and I want to thank everybody who helped me realizing my project - there is just one thing missing: the app in purchase functionality - which doesn't work. My AppID has In App Purchase enabled. ok. My Provisioning
-
I have a late 2011 macbook pro. The icon for air play is showing up in my itunes but not on my main tool bar.
-
Hello, We currently have Full Nokia Car Kits installed for the Nokia 6310i. We have now moved to the Nokia 6021 (as we can't get the 6310i's anymore) which has a different connector and so does not work in the existing Car Kits. I have been told that
-
Labview programmer seeking permanent Employment in and around NJ
Shortcut to: http://forums.ni.com/ni/board/post?board.id=JobSearch
-
Want to know where my ipad made..?
As we've known, there are many origin of Apple Product. Some product from HK, Singapore, Taiwan ....etc. If so, How could we know where was our Ipad made?