drive

when getting drive information using java

i tried the following program import java.io.*; class dr { public static void main(String args[]) { try{ File[] roots = File.listRoots(); for (int index = 0; index < roots.length; index++) { //Print out each drive/partition System.out.println(roots[index]...

Programatically ejecting and retracting the CD drive in vb.net or c#

Is there any way to do so? I know its possible to programmatically eject/retract the cd drive SOMEHOW, cause Roxio does that when it prompts me to insert a disk. Either c# or vb.net is preferable, but c and c++ are okay too as a last resort. I am nearly positive there is some way to do this, I just don't know the methods to call. I do...

listing network shares with python

Hello, if I explicitly attempt to list the contents of a shared directory on a remote host using python on a windows machine, the operation succeeds, for example, the following snippet works fine: os.listdir("\\\\remotehost\\share") However, if I attempt to list the network drives/directories available on the remote host, python fails...

Why is this variable appearing as undefined?

I have this code: FOR %%d IN (c d e f g h i j k l m n o p q r s t u v w x y z) do ( IF NOT EXIST %%d:\ ( echo Free drive %%d set D=%%d: ) ) echo d=%D% echo Using %D% to map remote drive subst %D% /d subst %D% \\path_to_drive and after this I'm using the D variable to map a free drive. The thing is, when I first ...

Any free or open source virtual in-memory drive?

Any free or open source virtual in-memory drive? I'm developing an plug-in for a host program and I need to comminute with it with temporary files in the disk, if the temporary files are stored in an in-memory virtual drive the performance can be increased dramatically. Hints for implementing an in-memory virtual drive in Delphi is als...

setCurrentDrive? c++ win32

hello how can I set the current drive in c++? this is how I set the directory but i'm unable to change the drive like this(duh) but I cant find anything on the msdn site... anybody know this? thanks ...

Mapping a WebDAV folder (WebFolder) to a drive - C#

Hi, I'm working on a WebDAV Application.. I can now connect to an ip, say, http://localhost:9005/MyWeb/ by creating a web folder. I could create and delete the web folder using C# code... I could traverse my web folder thoroughly... Is it possible for me to map this web folder to a new drive (using C#) so that I can access the contents f...

How can I develop a virtual drive.

Hi, I would like to create a virtual drive for windows. I'm not looking to map a drive or something like that, I'm looking to map it to my dll functions or something of that sort. How can I get this accomplished? I read that I would have to develop a device driver, or a shell extension? I have a lot of experience with C++ and C#. Wher...

How to access specific raw data on disk from java

I'm trying to use the following code to access one byte with offset of 50 bytes in a raw disk. randomAccessFile = new RandomAccessFile("C:", "r"); randomAccessFile.seek(50); byte[] buffer = new byte[1]; randomAccessFile.read(buffer); But all what I get is the following error: java.io.FileNotFoundException: C: (Acceso denegado) at jav...

Copy external HDD

I want to write an app. (web-based if possible) to copy an external HDD (already partitioned and containing data) to a like HDD with the same partitions-- does anyone think this would be possible with Java (Google App Engine? To convert Java app and run in web environment? Or likewise) Thoughts on if anything thinks this would be possib...

How to format drive in FAT 16 format using VB.NET without user interaction

How to format drive in FAT 16 format using VB.NET without user interaction ...

How can I mount network drive in Mac OS X on Java?

I am writing a programme on JBuider 2005 on Windows XP platform for Mac OS X. Programme must launch on Mac OS X and programme turnes(directs) to share folders on other computer(Windows XP) in network. It is necessary that then we launch nprogramme on Mac OS X this programme automatically mount these share folders under Mac OS X. Then pro...

how to map network drive for Clearcase View in Windows service ?

Hi, I want to map a clearcase view on network drive inside a windows service. I have tried with net use command, but it did not work properly. ...

how mount userdata.img or userdata-qemu.img in osx

Disk Utility in OSX easily mounts an SD Card image as a device, but not so the other img files. I want to get the database I just created in the Android Emulator off the drive and into my osx file system. I updated my system with qemu using macports but no combination I try succeeds. Anyone figured out how to do this? Obviously one wa...

Batch file to map a drive when the folder name contains spaces

I am trying to map a drive using a batch file. I have tried: net use m: \\Server01\myfolder /USER:mynetwork\Administrator "Mypassword" /persistent:yes It works fine. The problem comes when I try to map a folder with spaces on its name: net use m: \\Server01\my folder /USER:mynetwork\Administrator "Mypassword" /persistent:yes I have...

copy files to nework path or Drive using python

hi , Mine is similar to this question. http://stackoverflow.com/questions/2042342/network-path-and-variables-in-python/2042376 The only difference is my network drive has a password protect with user name and password . I need to copy files to a samba share using python and verify it. if i manually login in then the code works but w...

How to use C to write to flash drive bootsector despite error 'Failed to open file to write.:Permission Denied' ?

My goal is to manipulate the boot-sector in my flashdrive (volume E:) I am using XP. I am able to read the boot-sector FILE *fp_read = fopen("\\\\.\\E:", "rb"); /* Able to proceed to read boot sector */ however i am not able to open the file to write using fopen in 'wb' mode. FILE *fp_read = fopen("\\\\.\\E:", "wb"); /* Unable t...

Get drive label in C#

When I use System.IO.DriveInfo.GetDrives() and look at the .VolumeLabel property of one of the drives, I see "PATRIOT XT", which is indeed the drive's volume label. If I open "My Computer", instead I see "TrueCrypt Traveler Disk", and I can't seem to find any way to programmatically retrieve that value as none of the DriveInfo propertie...

Open/browse a password protected mapped network drive

I just want open a mapped network drive from C# code ,it is apssword protected, so when i try to launch directly it gives exception. Can some one throw light on providing username password while opening the this drive at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start...

Cannot write on a mapped drive using impersonation

Basically I'm running the same problem as this post http://stackoverflow.com/questions/2669672/accessing-mapped-drives-when-impersonating-in-asp-net I'm working on a legacy website and I need to allow the admins to change the site's logo, banners, etc, from an image file on their desktops to a mapped drive on the server. So, their webs...