How can I getting the system drives list?

Hello again. I'd like to create a dropdown list with the computer's drives, so you can easily change from one to another without using a "selectDialog" File object. Is it possible?
Thanks beforehand :)

Its something I havn't tried.
On a PC you might be able to use VB/VBS to get the file list, put them in an env so that you can read them from Javascript.
Here is a bit of code found on the net.
Set FileSystemObject = CreateObject("Scripting.FileSystemObject")
Set Drives = FileSystemObject.Drives
For Each DiskDrive in Drives
DriveLetter = DiskDrive.DriveLetter
DriveType = DiskDrive.DriveType
Select Case DriveType
Case "0" DriveType = "Unknown type of drive"
Case "1" DriveType = "Removable drive"
Case "2" DriveType = "Fixed drive"
Case "3" DriveType = "Network drive"
Case "4" DriveType = "CD-ROM drive"
Case "5" DriveType = "RAM Disk"
End Select
WScript.Echo "Drive " & DriveLetter & " is a " & DriveType
Next
Set Drives = nothing
Set FileSystemObject = nothing

Similar Messages

  • How can i get the system language of machine in script

    Hi,
    During postinstall, i want to install file based on the system language.
    How can i get the system language of machine in script ?
    Thanks,

    Michael Conniff wrote:
    I don't get it: what you posted gives a list of all the languages (and I don't see what awk brings to the party).
    Hmm. On my laptop the first bit gets me the list of languages as they appear in the listing in the International preferences pane:
    (en, de, es, ja, fr, it, nl, sv, nb, da, fi, pt, "zh-Hans", "zh-Hant", ko)
    So I piped that to awk to pull out just the first one (they're ordered just like they are in the prefs pane, with the current language first). But that gives me some extra text:
    (en,
    So I piped that to sed to remove the comma and parenthesis. That gives me the current code, which in my case was "en" (or "de" if I switched the language).
    defaults read -g AppleLocale
    gives me en_GB. So maybe this last is better for you?
    Well, sure, if you want to do it the easy way. But where's the fun in that? Seriously though, I get en_US, which is a more accurate and complete view of my settings...
    charlie

  • How can I get the system date in mm/dd/yyyy,

    how can I get the system date in mm/dd/yyyy, i need to compare system date with some other date,continuosly using threads,can U plz help me.
    With Some code
    Thanks In advnace
    Mahiiii

    Hi,
    You can use SimpleDateFormat class under java.text package.
    SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yy h:mm a z", new Locale());
    //formatter.setTimeZone(timezone);
    String dateTime = formatter.format(new Date());

  • How can i get the "Do recursive listing.vi" with teh sub-vi, because my is lost???

    How can i get the "Do recursive listing.vi" with the sub-vi, because my is lost???
    THX

    I think you must be using LV 8.x...
    Do a LabVIEW repair to get it back or else, use the attached one.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    Recursive File List.vi ‏33 KB

  • How can i get the System Time from the other host

    I want to get the System Time from the other host in the LAN,How can I get the Time using Java.
    Such as I am in WIN 2000 and I have a Unix host in LAN, I want to get unix host System time, How can I do it.

    Open a socket to port 13 and read a string with the time.
    -or-
    Open a socket to port 27 and read 4 bytes that are a network order timestamp
    Assuming that your UNIX machine has those services running, most do

  • How  can i get the system ip address through d2k/oracle

    hi
    how can i get the I.P. address of the System, whether any builtin function is available oracle/d2k.
    please do needful help

    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:510222107880

  • How can I get the Display Profile list to update with new profile names?

    Hello
    I recently created a couple of color profiles with a calibration device, and I decided to manually rename the color profiles after creating them. The problem is, when I open Displays in the control panel, the new names for the profiles don't show up, only the old names. To get the Display Profile to update, I have to pull the profile out of Library > Color Syncs and restart (which clears the profile from the list), then put the renamed profile back in, restart (which then adds the renamed profile to the list)
    Is there an easier way to to this, to get the Display Profile list to update? Is there a preference or cache somewhere?
    thanks

    Oh, cool! I never handle any Mayan stuff in my job, but many of my academic cohort have done so. Mostly Tzotzil.
    Anyhow: your sample font was Times New Roman. If you can't see the combining glyphs, then you're using an out-of-date version of the font, or something else is wrong. . Did you maybe start your work on a contemporary version of Word in WIndows, and now you've shifted to using a Mac with an older version of Office? THere are plenty of nulls in TNR (which are usually codepoints not in Unicode, usually a sign of some kind of hacky workaround on the part ofthe font designer). There should be a real combining macron below right about here, in between the crazy upper Latin and the Greek caps :
    So I'd want to know: what font are you using for this? If not TNR, then I'd suggest Gentium. I might even suggest dropping TNR for Gentium. Judging by your screen name, you may well already be aware of SIL. If not - oh hey, they make fonts for people who are in your shoes! Go check 'em out. The fonts are free, and pretty reliable. And Gentium may already have a precomposed with-line-below glyph for your typesetting needs.
    The Kerning dropdown lets you adjust the spacing between letters in a letter-by-letter way. Selecting all of your text and picking "Metrics" is the way to go here - unless you are a designer who thinks that the capital D is way too far away from the lowercase i, and want to tweak the kerning manually. "Optical" is for large font sizes where body-text-style kerning is too spacious. Avoid using it at small font sizes.

  • How can I get the right driver(windows 7) for my ipod classic

    I just bought a ipod classic, and tried to use itunes but it doesnt recognize it. I have tried to mange the drivers, unistall, update them, and the the end the message of DEVICE DRIVER SOFTWARE WAS NOT SUCCESFULLY INSTALLED. FAILED. My computer has windows 7, here i have all my music and already had itunes ,because i had an older ipod classic version. I unistalled , repaired and installed the latest version ( 11) of itunes. I connected the ipod classic on a computer with  windows xp, and it works perfectly, it says I have the version 2.0.5. Help, please!

    You should click on the error and under the action center try to find a solution and redownload. Otherwise try Microsoft help because its a Winders problem not instaling the drivers.

  • How can I get a drop-down list selection also be selected in another field with the same list but a different name?

    I have a street address and a billing address. A question is posed with a checkbox — "Is the billing address the same as the street address?" If Yes is checked, the street address automatically fills the billing fields. If No is checked, the user must fill in new information. In both the street address and billing addres, the State field is a drop-down list. How can I get the drop-down list selection in the street address State also be selected in drop-down list for the billing address State?

    Has anyone done this?

  • How can I get the amount of free space that is on my drive to show at the bottom of the drive in Lion.

    How can I get the amount of free space that is on my drive to show at the bottom of the drive in Lion.
    This is a must feature for me and I may have to go back to Snow Leopard.
    Please help!

    Right click on your desktop and choose "viewer options". Adjust the spacing and the size of your icons and you should be able to see the size of your drive(s) and the free space available on each drive with the exception of your bootcamp drive which will only show the overall size of the drive you have it on.  This may be different if you only have one system drive (like on a Mac Book Pro) with a partition containing bootcamp on it. this may only show you the overall capacity, I can't say for sure though as I only use a Mac Pro with 4 seperate Hard Drives which are showing both overall capacity and free space available. Hope this helps
    Denisimo

  • HT204053 How can I get the contacts list on my iPhone to appear in my iPad Air

    How can I get the contact list on my iPhone to appear in my iPad Air?

    Welcome to the Apple Community.
    Please try the following…
    First check that all your settings are correct, that contact syncing is checked on all devices (system preferences > iCloud on a mac and settings > iCloud on a iPhone, iPad or iPod).
    Make sure the contacts you are adding are added to your 'iCloud' group and not an 'On My Mac', 'On My Phone' or other non iCloud group (you can do this by checking in groups), non iCloud contacts will not sync.
    If you are sure that everything is set up correctly and your contacts are in the iCloud group, you might try unchecking contact syncing in the iCloud settings, restarting your device and then re-enabling contact syncing.

  • In the iMovie 11 event library, how can I get the iPhoto video clips to combine with my camcorder pics listed below and in chronological order?

    In the iMovie 11 event library, how can I get the iPhoto video clips to combine with my camcorder pics listed below and in chronological order?

    Try forcing iPhoto to load the Library on the External Hard drive by launching it while holding down the Option key. Choose the Library on the External HD, and quit iPhoto, see if iMovie can see the Library with the iPhoto Videos contained inside.

  • I downloaded new Firefox but now can't open Firefox at all. It says it is not supported on my system. How can I get the earlier version which I deleted?

    I downloaded new Firefox but now can't open Firefox at all. It says it is not supported on my system. How can I get the earlier version which I deleted?

    http://www.mozilla.com/en-US/firefox/4.0/system-requirements/ <br />
    Mac
    Operating Systems
    * Mac OS X 10.5
    * Mac OS X 10.6
    Recommended Hardware
    * Macintosh computer with an Intel x86 processor
    * 512 MB of RAM
    * 200 MB hard drive space
    For older Macs that aren't supported in Firefox 4.0, try TenFourFox for PowerPC's running Mac 10.4.11 & 10.5.8 . <br />
    http://www.floodgap.com/software/tenfourfox/

  • 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
    Vikram

    Login 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 can I get the list of drivers without getting popup message?

    Every time the application gets to this line:
    File[] roots = File.listRoots();
    I get message box: "There is no disk in the drive.
    Please insert disk into drive A:"
    How can I get the list of drivers without getting
    this message popup?

    I don't have a solution to this problem. However, it does occur and it is annoying. I am testing our application on 4 client machines. On three of them, it NEVER asks for the floppy disk. On the remaining one, it ALWAYS asks. I have looked on the computers and cannot find any configuration differences (in fact, these machines are kept in a "closed environment", and therefore, they are configured, by default, exactly the same).
    Does anyone have any thoughts?

Maybe you are looking for

  • Assigning interface to interface

    Hi All, I have a question in interface. It may be a silly doubt, but I am not sure what I am missing out. I have 2 interfaces I1 and I2, totally unrelated. I create variables for these 2 interfaces i1 and i2 respectively. Can I do like this? i1 = (I1

  • User Status Replication-CRM to R/3

    HI Gurus Our requirement is to replicate the Item level user statuses in CRM Service order to R/3.We will use BADI- CRM_DATAEXCHG_BADI and methodCRM_DATAEXCH_AFTER_MBDOC_FILL. Would appreciate if you can let me know how to fill the item status inform

  • Top Sites Not Visible When Safari is Opened by a Link

    When Safari is opened via a link, such as a link within an email, clicking on the Top Site button in the menu bar does not show my Top Sites (the starting web page remains visible). The Top Sites are there because you can click in the location where

  • I can't restore my classic!! Says Error 1418

    Also I haven't been able to get a full charge.

  • Hp media center m7350n video port on motherboard

    I'm having problems with the video card on the HP Media Center m7350n.  The picture on the web site shows that there is a motherboard video port, but I don't see it on the machine that I have.  There seems to be 25-pin port, possibly printer, in that