How to retrieve additional information about roots?
Excuse me for my little english..
I have used the method "listRoots" of java.io.File class for get drive list on my system (Windows).
Now, I need to obtain the device type for each root (for example floppy, cd-rom , hard disk, etc.).
Can I do this, without using native interface?
thank you so much,
roybart
Heres some code that I have. This might be what your looking for. getSystemDisplayName will
display what jfilechooser displays.
int idx = 0;
FileSystemView fs = FileSystemView.getFileSystemView ();
File flist[] = File.listRoots();
for (idx = 0; idx < flist.length; ++idx)
System.out.println ("file: " + flist[idx].getAbsolutePath() + " - " + fs.getSystemDisplayName(flist[idx]));
}
Similar Messages
-
how can I view information about an image, such as the file name and exposure, on the Ipad?
You can't with the built-in Photos app, but there are apps such as iPhoto which allow you to see the exposure details (aperture, shutter speed, focal length, ISO). PhotoMeta also shows you that info
-
How do I get information about filing a claim for kids purchases
How can I get information about making a claim for kids unauthorized purchase?
I have seen nothing formal from Apple though I have read they are open to discussions about the matter.
If it is an individual instance, there is a section on the purchase receipt that invites you to report a problem Report the purchase and the circumstances.
However, if it is a recurring problem you would have been expected to utilize the parental control features. -
How can I obtain information about the recently finished commands?
How can I get information about the recently finished jobs / bash commands? (eg. date / time of termination)
$ e echo foo
foo
$ type e
e is a function
e ()
$@ && echo $@ - $(date) >> test.txt
$ cat test.txt
echo foo - Wed Jan 1 12:10:54 CET 2014
$ e echo bar
bar
$ cat test.txt
echo foo - Wed Jan 1 12:10:54 CET 2014
echo bar - Wed Jan 1 12:11:09 CET 2014
$ e htop
<here I do something with htop for a little while>
$ cat test.txt
echo foo - Wed Jan 1 12:10:54 CET 2014
echo bar - Wed Jan 1 12:11:09 CET 2014
htop - Wed Jan 1 12:15:14 CET 2014
Last edited by karol (2014-01-01 11:20:36) -
How I get a Information about how many Scheduling agree
Dear friend,
Can any one tell me a process ,How I get a information about how many scheduling agreement or Schedule lines created with in given time.Any standard tcode available ?
Regards
Abrar AHmedDear Abrar
- To see how many scheduling agreement is created for a given period, use VA05, click on [Further sel criteria] and tick the box against [Sales Document type] Now input the scheduling agreement type and execute. You will get list of all scheduling agreements created within the specified period.
- You can see how many line items are created in a sale order for a given period via VA05.
thanks
G. Lakshmipathi -
How i get some informations about audio file?
Hi to all,
i would like to know how i get some informations about audio file, such as its artist, bitrate, file type, duration, ecc...
Any help me?Ok, but which are the docs of audio format?Again, what does that have to do with Java?
Where i can found these documents?Again, what does that have to do with Java?
Thank you...For nothing.
db -
HT204053 how can i chancell information about my credit card
how can i chancell information about my credit card
On an iOS device:
Settings>iTunes & App Stores
Tap on your Apple ID
Tap View Apple ID
Enter your password
Tap payment information
Tap None
On the iTunes on a computer:
Go to the iTunes Store
Click on your Account Name in upper left corner of the Store and click Account (or click sign in)
Enter your Apple ID and password
Click Edit, next to Payment Type
Click None -
How can i chancell information about my credit card
how can i chancell information about my credit card
Easiest way is to redeem an iTunes gift card. If you don't want to do that:
Go here:
https://getsupport.apple.com/GetproductgroupList.action
ask for assistance. -
How to find the Information about DB-Server in OEM?
Hi all,
I would like to know, how to find the information about the Server-Machine on that the Database installed (Server ID, Network ID, IP-Address, ...) in Oracle Enterprise Manager.
Regards
Leonid PavlovHI Dan,
I dnt know what is SEM ? I Know that SEM uses BI data. if im wrong pls correct me, and my question is, is there any function modules like SD, MM like wise in R/3 is there any modules same in SEM . If they are where the information is stored that these modules are implemented.. at database level..
Thanks,
Mahesh -
How do I get information about new legal requirements?
Hi
We are 4 people in a company that has 39 active company codes in about 25 countries. How can we subcribe to whenever SAP releases new reports that meets legal requirements in specific countries? Some of our companys have their bookkeeping taken care by a neighboring country, so the bookkeepers would not know if there is a new report released from SAP. So how can we get information about new reports without having to read throug all the release documentation?
Hope you can help
Jens Bald
IC Companys
DenmarkHello Jens,
this is a real problem.
What is my experience? The first priority is: try to use the SAP Standard as far as possible. No user-defined reports, no exits. Try to be always up to date with hotpackages.
A further help for me are the userforums here. If you have five minutes left, just have a look at all the questions and answers.
I know, there is a lot of stuff to read, but the releasenotes have to be checked. Unhappily I didn't find another way.
Sometimes SAP reacts just in time regarding new legal requests - and I can understand this. At least I have to say: It is not possible to manage this without having any support from the accountancy side. This enables you to search for this requests - instead of reacting.
If a country changes statutory requests regarding taxreporting or new taxtypes, changing of rates the guys from local accountancy ought give you a hint. Because they get this information at first.
I made good experiences with internal accounting forums or user groups (i. e. northern countries, westeurope, USA, southeurope).
Maybe it gives you a little help and I am very interested in all the answers to this thread.
Best regards
Horst -
I would like to have more information about the cookies being stored on my computer via firefox- such as last date accessed/created/modified; how can I add these options to cookie storage?
Maybe this extension will do that:
*Cookies Manager+: https://addons.mozilla.org/firefox/addon/cookies-manager-plus/ -
How to include additional information in the notification emails
Hi!
As we know when Portal Admin creates a user,and if configured to send email, an email is sent to the new user informing about their username and password.
Now my question is there any way possible to include additional message in those notificatin emails. If yea ,how?
thanks for your help
Regards
SureshHi Suresh,
I hopt this <a href="http://help.sap.com/saphelp_nw04/helpdata/en/33/d494c86203ea40b7b44ddd471baab1/frameset.htm">link</a>will solve your problem. Dont forget to reward points.
Thanks Mitts -
XSchema: How to get (more) Information about validation errors?
I changed the file car.xml to have an invalid xml-file, then
i validate the demo car.xml using the demo programm xsdtest.
I got the following error message:
In line 7 of car.xml:
LSX-00290: invalid enumeration choice "Hugo"
LSX-00213: only 0 occurrences of particle "sequence", minimum is 1
Validation failed, error 213
The first 2 lines are dumped from the SchemaProzessor. Unfortunatly there is no
possibility to get this information with a methodcall or by return value
to use for further processing!
The only thing i got controlled back is the error code 213.
But how do i get the correspondening errortext ? What means error 213 ?
So here is my suggestion:
Please give accurate information about validation errors! Including:
1) The position where the error occurred. (maybe in XPath notation)
2) An error Number to classify the error (Including a possibility to resolve the errormessage via program.)
3) An error text for the specific case : (for example : invalid enumeration choice "Hugo")
Please give this information in a struct back or provide methods on the
Xschema prozessor.
Otherwise the XSchema support is useless!!!!!
Sorry for my bad English & Greetings
Martin Frenzel
By the way: The XDK for Java uses a different Error Messages !!!! But there is the same problem...1.How to check when user last time login to database.AUDIT
2.If user account is lock why it is locked? if it is locked by trying to loing with wrong password how to check how many times he attempted with wrong password...and other reasons alsoCheck Profile For this user and attr.
3.Wheni was trying to select user expire date it is showing empty value...can we check expire date through querys or we need to check profile?
SQL> select EXPIRY_DATE from dba_users ;
EXPIRY_DA
24-SEP-11
24-SEP-11
24-SEP-11
24-SEP-11
24-SEP-11
24-SEP-11
24-SEP-11
23-MAY-13
24-SEP-11
24-SEP-11
24-SEP-11 check
expiry_date in dba_users is null
4.How to check when he was reset his password last time.SELECT PTIME FROM SYS.USER$; -
How to retrieve CRL information from a client computer
Is possible to retrieve CRL information from a client computer and how?
Thanks.CRL's do not normally live on workstations... normally these are hosted on servers. If you want to see what server are in the local revocation list then look at the certificates mmc snap-in and look at the revoked certificate list. If you want to test
a CRL for a certificate then export the certificate and run "Certutil -url"
Alan Burchill (MVP)
http://www.grouppolicy.biz
@alanburchill -
How to retrieve system Information on client machine Using Applets
How to retrieve video card information on client machine using applets and JNI, please suggest me on this
Thanks
GReddy1. Research platform specific OS API to do whatever you want with video cards
2. Write C/C++ code to wrap the functionality in 1 into something looks closer to what you want to see in java
3. Write a class that models the functionality of 2 with native methods.
4. Write the native methods of 3 such that they call the methods of 2.
Note that steps 1 and 2 have NOTHING to do with jni nor java. So you start by looking somewhere else for the answers to that.
Maybe you are looking for
-
How to make the column title needs to be on each page?
If a document has more than one page than a column title needs to be on each page,I can use Word fuction to do that. But If I Only use XML publisher, How to do it. Message was edited by: zhengr
-
Upload Error, How do you identify the datasource in BI & ECC?
Hi BI Experts, Hope you can help me on this. We are using BI content to extract & model the data in BI. For the asset accounting infoarea, we had an unusual dataload. It should update around 10,000 records every day. In this instance there was 500
-
How do you delete your apple ID forever
HOw???
-
Hi, The Airport Express does not work with iOS 7.0.4, I appreciate your help to resolve this event. Thank you,
-
I have an iphone 4 and my computer recently crashed due to a virus. I am working on new laptop now and I do not want it to become infected so I have not hooked my hard drive up to it. Is there any other way of ensureing the music does not get delet