How to determine physical drive mapping?

Hi,
after selecting a file using the FileChooser dialog, i would like to convert the file path like "H:\index.htm" into a form like "\\filer01\dir\index.htm", where \\filer01\dir corresponds to the physical drive mapping.
On my system, the logical device name H:\ is mapped to a directory on a file server "filer01".
Is there any possibility to do this conversion by getting the physical drive mapping from the systems environment?
Thanks in advance.

I've got a book called Visual Basic Programmer's Guide to the Win32 API, by Dan Appleman, where I look up things like that. But it's all available online on MSDN.

Similar Messages

  • How to determine physical disk size on solaris

    I would like to know whether there is a simple method available for determining physical hard disk sizes on Sun sparc machines. On HP based machines it is simple:
    1. run "ioscan -fnC disk" - to find all disk devices and there raw device target address ie /dev/rdsk/c0t2d2
    2. run "diskinfo /dev/rdsk/c0t2d2" - display the attributes of the physical disk including size in Kbyes.
    This simple process allows me create simple scripts that I can use to automate collation of audit data for a large number of HP machines.
    On Sun based machines I've looked at the prtvtoc, format, and devinfo commands and have had no joy. Methods and suggestion will be well appriciated.

    ok,
    format should say .....eg
    type format ..
    AVAILABLE DISK SELECTIONS:
    0. c0t0d0 <SUN2.1G cyl 2733 alt 2 hd 19 sec 80>
    if this is not a Sun disk, and you do not get the info,
    select the required disk and select partition and then print. This will display what you need.
    hope this helps

  • How to identify physical drives in software RAID?

    I've got 6 G-Tech 2TB drives in a RAID 10 configration hanging off of an older Mac Mini. A couple of the slices have started to act up leading me to believe one day soon I might need to replace a drive in the event the automatic rebuild fails. The trouble is I do not know how to associate the slice name (disk'n's2) with the actual physical device. Any ideas on how to do this?

    How are they connected & what OSX version?
    If SATA, in System Profiler>More Info>Hardware>Serial-ATA, once I highlight the manufactures name it shows the Serial#, at least in 10.5.8

  • How to determine video driver version?

    Is there any way to determine the version of the Nvidia video driver that's being used on my system? I've checked the Graphics/Displays section of System Information, but it's pretty vague. I assume that the entry for "Revision ID" is what the answer is, but I don't know what "0x00a1" means, in my case. Does anyone know how to relate that to an actual version number?
    Thanks!

    I didn't realize that, actually. So the video drivers are embedded within the OS, then? And the CUDA drivers are the upgradable thing?
    By the way, I did tag my question with Geforce GT 120--the model of card I have. I have a Mac Pro 4,1 Quad-Core Xeon
    Thanks,
    Joel

  • How to determine that the Mapped User Id has the active r/3 account?

    Hi Experts,
    I have a requirement to determine the whether the mapped user ID in portal has active  or inactive user account in R/3.
    For example:
    We have implemented SSO between WAS & backed R/3. Now the user has the active poratl account but the R/3 account is inactive or locked due to some reason. Now in this situation when user logs in and hit the application then the screen display's the 500 internal server error which is not understood by the client. The requirement is to display the custom message instead of 500 internal server error inorder to direct the user that his account is inactive or locked in R/3.
    I have to handle this within the WDinit method of the Componenet controller which will stop the processing if incase the above is true and display the appropiate Error Message.
    Hope I am clear in statement above.
    Looking for your prompt reply.
    Thanks
    Shobhit Taggar

    Hi
    import com.sap.security.api.IUserAccount;
    See this link
    http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417300)ID1438221150DB00601362742208939333End?rid=/library/uuid/40d562b7-1405-2a10-dfa3-b03148a9bd19&overridelayout=true
    Kind Regards,
    Mukesh.

  • How to determine which drive has the most recent backup?

    I have a few drives that contain backups of files. What would be the easiest way to figure out which of the drives has the most recent backup? When I sort by date, the folder shows one date, though the files inside show a different date? Is there a way to quickly check the drives to find which is the most recent?
    Thanks.

    the folder modification date isn't reliable, as is only tells of changed in the folder, but not in subfolders. there is no efficient way. I however highly suggest Time capsule, it is WAY easier and you can ask it not to sync the System data and/or applications, so it would prevent this hassle.
    You could try this: go to the first drive, type different letters, like a for instance, and see which file is the most recent document/folder.
    do the same thing on the other drives and compare.

  • Error code 0x80070035 on drive maps in GPO, "Network path cannot be found".

    I am trying to apply a GPO that maps drives so that another GPO can then make them available offline for a couple of hundred users.
    Every time I try to apply the policy it fails with an 0x80070035 error which translates as a "Network Path cannot be found". The security settings for that particular folder is fine and the user can see it ok, furthermore following logon I can
    manually map the drive through windows explorer and through CMD/powershell using the net use command.
    The path i tried was \\servername\otherdir\securearea\ which didnt work (i did drop and add the final "\" just in case i was going mad)
    i then tried \\servername\otherdir\unsecurearea\ which
    still failed
    just to prove my lack of sanity i created a folder on the hard drive of the laptop itself, made it a shared folder and tried both \\localhost\sharedfolder and \\127.0.0.1\sharedfolder,
    they all fail with the same error code.
    i have checked the hosts and the lmhosts files are there is nothing new in there, only the usual MS gumf that has come with every copy on windows since Win95
    patience is wearing thin, hair is getting short ...
    thoughts anyone?
    Nothing is unfixable - with a suitable sized hammer!

    Hi klimacher,
    Would you please let me know the current situation of this issue? Have you referred to Kelly's suggestion and solved this issue?
    Based on your description, I understand that you configure Drive Maps via GPP. However, can’t apply the policy
    with error code 0x80070035. If anything I misunderstand, please don’t hesitate to let me know.
    If so, you should find Event 4098 as below shows.
    When you type the location of this mapped drive, please remove trailing slash on the UNC path. Then apply the
    setting and run gpupdate command to update group policy setting. Please monitor the result.
    In addition, please refer to the following article and troubleshoot this issue.
    Troubleshooting
    the Drive Maps Preference Extension in Group Policy: Adding a Share Name with Trailing Slash '\' Returns Error Code 0x80070035
    If this issue still exists, please let me know summarily how you configure the Drive Maps. For an example,
    where the GPO link? Did link to user OU? Any update, please feel free to let us know.
    Hope this helps.
    Best regards,
    Justin Gu

  • How to detect which physical drive a given file is on

    Given a file that exists, is there a way within Java to detect what physical drive that file is on? I don't care how that drive is denoted, as long as it is uniquely specified. This can be through a hard drive serial number, or any other way. The specifics of the drive do not matter, I only care about uniquely identifying physical drives. If it matters, I'd like to also be able to determine if said drive is a flash drive, however programmatically I won't care that it is a flash drive, just that it is a separate drive itself.
    If this isn't possible through Java, could someone point me in the direction of how to determine this through another language, possibly using JNI?

    mgolowka wrote:
    Given a file that exists, is there a way within Java to detect what physical drive that file is on?
    Check if this helps you, I'm not sure the effects when this is executed in a Unix based environment.
         public static void main(final String[] args) {
              final String fileName = "my_file.myext";
              final File file = new File(fileName);
              final File roots[] = File.listRoots();
              final String rootOfTheFile = file.getAbsolutePath().substring(0,
                        file.getAbsolutePath().indexOf(File.separator))
                        + File.separator;
              System.out.println("File is present in - " + rootOfTheFile);
              for (final File file2 : roots) {
                   System.out.println("Root in system - " + file2.getPath());
         }And the output for the code is as follows, of which Y and Z are network mapped drives.
    File is present in - D:\
    Root in system - C:\
    Root in system - D:\
    Root in system - E:\
    Root in system - F:\
    Root in system - Y:\
    Root in system - Z:\

  • How to find out web-inf path from the physical drive?

    How to find out web-inf path from the physical drive?
    I have some user profiles in web-inf directory.SO I want to know the path from root directory like
    d:/program files/allaire/jrun/appname/web-inf/profiles/username like that.
    Presently I am able to get the path upto the application directory and from that I am concatinationg web-inf/profiles/username .
    But it is giving problems when it is deployed under unix or linux.Because web-inf there it treats as WEB_INF
    SO I want to get the path of web-inf directory with out hard coding.
    Thanku

    String path = application.getRealPath("/WEB-INF/profiles/username");
    Note sure why you need this, but you don't need the real path to read the file - you can get an InputStream using the relative path. See ServletContext getResource() and getResourceAsStream().

  • How can I change the BlackBerry Link Network Drive mapping from Z: to something else?

    Hello,
    I generally have a mapping to my NFS server on Z:, and my iTunes library has a relative path to Z: for all of my music - the fact that Link is automatically picking Z: as my network sync target for my device does not work for me to sync music, or anything really. I can't figure out how to change this value to something else.
    I found the registry key: \HKEY_CURRENT_USER\Software\Research In Motion\Device Manager\Device Settings\<DEVICENAME>\VolumeMapping with a default blank REG_SZ - can I use this key at all to manually change drive mappings for my device? If so, what is the key/value pair I need and will this mess up any assumptions taken inside the Link software for synching?
    ... Also, I have a Feature Enhancement Request to go along with this issue: Add a "Change drive map letter" button beside the "Turn on wireless connections to my computer" button in Link, and add the same option in the context menu to the 'Device Manager' for the mapping (which currently just says 'Explore').
    Thanks for the help,
     - Jeff

    I do not know a lot about this subject but since Device Manager is not a Device and the BlackBerry Phone is not recognized as a Device in Disk management unless Mass Storage is turned ON it looks as if by design you cannot change the Drive Letter.
    Also if Mass Storage is turned On in the Phone Settings File Manager and BB link will not work but the BB Phone will then be recognized as a Device in Disk Management and the Drive Letter can be changed, this has no effect on the Drive Letters for Device Manager.
    Normally to change the Drive Letter and Paths of a Device once the Device is plugged you would go to Administrative Tools, Computer Management, Disk Management, right click the Device and choose "Change Drive Letter and Paths"
    Changing the Registry or Uninstalling Device Manager but keeping BB Link or looking for a Utility that can change the Drive Letter such as the one that many XP users had called TweakUI (only worked in XP) or changing the Drive Letter for your Network may be the only way.

  • How to clone a physical drive?

    Hi, I have been trying to figure out how to clone my MacBooks hard-drive. It has OSX, plus Bootcamp and XP Pro partitions. My destination drive is an exact duplicate physical drive in an external USB enclosure. I want to clone the entire internal drive to the external drive, including all partitions and boot data. The DiskUtility, even when booted from CD, only supports cloning individual partitions. SuperDuper and other utilities seem to work the same. I tried the linux tool, G4L, and it did not recognize the external USB drive. I am trying to clone so that if the internal drive ever croaks, I can just drop in the drive thats currently in the external case - and have no down time. I only need to backup my machine this way once a month, so it doesnt matter how long the process takes - as long as it works! Any suggestions?

    Hi wh31415,
    You can clone both your OS X and Windows partitions from within OS X. Partition your external so that the Windows portion is large enough to hold a disk image of the Windows installation on your main drive. Leave the rest for OS X. You can do this with Disk Utility.
    Once you have the external partitioned, use WinClone to clone the Windows drive. You run it right from OS X. It creates a compressed disk image that can be restored from OS X also. It's free and works great.
    For OS X, use either SuperDuper! or Carbon Copy Cloner. Both can be run right from the OS X installation you're booted from. Just don't do anything else while it's cloning. Both are free, though the paid version of SuperDuper! is worth every cent for updating your backup.

  • How to fix an external drive's drive map?

    So my Toshiba external hard has only mounted on my MacBook Pro previously, but no other computer. Now I mounted it today and none of the files were shown in the finder. They are still there becuase the capactiy is over 400 GB used out of 1TB. I already tried the Repair Disk in the Disk Utility, but it came back with that the drive map not working. There is very important information on this drive and it is the backup. Anyone know other disk repair utilities that might work?

    You can use Disk Utility within Mountain Lion.
    Open Disk Utility.
    Select the external hard drive (not one of its partitions).
    Click the Partition tab.
    Use the bottom right corner to resize the Partition you want to create free space for.
    After resizing, click the '+' in the bottom left corner to create a new partition from the free space.
    Click Apply.

  • How can I generate a map file with LabVIEW?

    We wish to use a product which inserts code into our executable to prevent tampering with it by crackers.  The program, however, takes the executable file, as well as the map file (which is commonly generated by c++ compilers) and uses the map file to determine where in the exe the critical routines that need protection are at.  I can not, however, determine how to create such a map file for a LabVIEW generated executable.  Is there a special build option I need to invoke?

    Yes, I'm familar with NI's licensing technology, having talked with someone (you, Dennis, I believe) about it before.  The problem we have is our software is sold to factories in China where there are no internet connections.  We have a physical key 'dongle' which must be present in order for the executable to be willing to run.  However, it appears that people are taking the executable  which LabVIEW creates and they are editing it, probably by using a a debugger and tracing to the the code which checks for the dongles presence and bypassing it.  To my knoweledge, NI's products don't do anything to prevent this, right?
    We found a company which sells a product that encryptes, checksums, etc... an executable file, but it needs to know the layout of functions in the exe in order to determine which areas to focus the obfuscation on.  They were sort of matter of fact when they said it needs the exe and the map file, as if they expected any language which produced an exe could produce a map file.

  • How to mount SAN drive inside Solaris 10

    Dear Support,
    I have some solaris servers, and storage administrator have given 1 of the solaris server 4 LUN. I will need to mount those drives inside my solaris servers. I would like to know how to do it step by step.
    Anyone can guide me?

    1. After I do rescan with DEVFSADM and I do sympd list will device appear?
    hostname#echo | format :
    Searching for disks...done
    here you can able see non labled disks. you need to labled first. after labled, here you are not see disks.
    AVAILABLE DISK SELECTIONS:
    0.c0t0d0
    2. How can I see the device prior to formatting and mouting it?
    After labled, you need to create the new file systems with user : newfs /dev/rdsk/c1t2d0sX
    cerate mount point: mkdir /test
    mount /dev/dsk/c1t2d0sX /test
    3. From the FORMAT command how do I know which is my new device as the server already has plenty SAN disks assigned?
    A): hostname#echo | format :
    Searching for disks...done
    here you can able see non labled disks. you need to labled first. after labled, here you are not see any disks.
    AVAILABLE DISK SELECTIONS:
    0.c0t0d0
    4. From the FORMAT command how do I tie devices back to a SAN/Symmetrix device number?
    echo | format | grep c1t2d0 (SAN device name)
    5. Then the easy part to the guru's how to I physically map/moun the newly added device?
    you have fallow the above steps..

  • Erratic drive mapping - Vlan assignment

    Hello all,
    We are having issues with inconsistent drive mapping after vlan change. The client computers (running Windows 7) first authenticate against our NPS server (using mac authentication bypass), and are then placed in vlan 10. After the users log in, they are
    placed into a different vlan based on user's AD group membership. The actual vlan switch works fine, and the users always end up in the right vlan. The drives, however, aren't always there. The user's home drive is mapped via the Home Folder in the users'
    properties in AD, and the rest of the drives (staff data, etc.) are mapped via a log on script. Drives mapped via GP are almost always mapped, but drives mapped via AD properties are missing much more often. All of the drives can be manually accessed from
    all of the vlans. There are no errors on the NPS side, and the only errors I can see in the event viewer are DHCPNack messages (The IP address lease 10.42.13.xx for the Network Card with network address 0x has been denied by the DHCP server 10.42.10.xx). Does
    anyone have any advice or a possible solution? Any info would be much appreciated.
    Here's how authentication is set up locally:
    Cache user information for subsequent connections to this network
    Enabled
    Authentication Mode
    User authentication
    Maximum Authentication Failures
    2
    Maximum EAPOL-Start Messages Sent
    Not setup
    Held Period (seconds)
    Not setup
    Start Period (seconds)
    Not setup
    Authentication Period (seconds)
    Not setup
    Single Sign On
    Before user logon
    Maximum acceptable delay for network connectivity
    10
    This network uses different VLAN for authentication with machine and user credentials
      is enabled
    Allow additional dialogs during single sign on is disabled
    Fast Reconnect is disabled
    Authentication method is PEAP-MSCHAP V2
    Thank you,
    Nikita

    Hi,
    When an interface changes VLANs, line protocol goes down for a moment then comes back up again. It is similar to physically disconnecting the interface for a very short time. Your problem might be caused by the interface being down for this short period
    of time, because this is when the home drives are being mapped, but I'm not sure.
    If the GP mappings are almost always working, why not do everything there and dispense with the home drive mapping?
    You can also try setting Computer Configuration ->
    Administrative Templates -> System ->  Logon -> Always wait for the network at computer startup and logon to
    Enabled and see if this helps.
    -Greg

Maybe you are looking for

  • Iphone 4 battery sometimes drains fast -- problem with Mail app?

    My iphone 4 battery often drains too quickly, and I wonder if it has something to do with my Mail App. When my phone is not playing nice, it drains at least 20% overnight while on Standby, and from 100% to 30% in around 6 hours when I use it during t

  • Problem in Report Templetes of User defined COA

    Hi I have user defined Chart of Account.That means i have to prepare templetes for each reports such as Balance sheet, P/L statement, trial balance.But im not able to get how to prepare it.There is option of just naming the titles and active accounts

  • Skype History Across Across Multiple Platforms

    I need to get acess to my entire Skype history from both of my platforms: Computer and iPhone. My iPhone one just displays my iPhone-based calls, and my computer displays the computer ones. I need to be able to print this call log for government purp

  • Migrating 6i forms / reports to 10g (Urgent)

    Hi, We have 6i versions of forms and reports running in a client/server environment, and are planning to upgrade them to 10g. I need to give an estimate to my manager on the effort involved in migrating the existing objects to 10g. To provide an esti

  • 10.13.4, Cannot lookup BPEL domain. The BPEL domain "default" cannot be

    After Upgrading to SOA 10.13.4 we get this Error. We are using OLITE Database. Meta Link Note 419713.1 Suggest Updating Version_Server Table. How do I Update When The Database is Olite . (How Do I login into Datatbase and Perform Update) SQL> update