Mount A File As Virtual Drive?

Nov 11, 2009

I'm trying to make a program that can mount a file associated with the program as a virtual drive such as PGP does. Encryption isn't necessary to the program, but if it is needed to mount the file as a virtual drive then so be it.

View 1 Replies


ADVERTISEMENT

Access Cryptainer Virtual Drive Projects Using Windows 7 & Net 2005?

Jan 17, 2011

I am trying to migrate from XP & Net 2005 to Windows 7 & Net 2010 My intention was to replicate net 2005 first & get projects working before installing net 2010, as I envisaged all sorts of learning tasks which I could resolve at a snaill pace whilst still being able to operate with net 2005

Stage 1 was to load 2005 on Windows 7, no problems yet.

Stage 2 open the Virtual Cryptainer drive

Stage 3 load a project ( was never a problem with XP)

Stage 4 project errors reported as not being able to access linked modules in another folder

Windows 7 seems to have more folder security/permissions than XP, so I altered as many folders being associated with the project but to no avail.By changing the virtual drive folder permissions are they amended on the drive folders (if so how would this affect going back to XP)

are the folder permissions somehow stored in the registry, which means if I restore an old virtual drive from backup, does W7 now know the permissions & apply them to the back up drive, even though those folders were never accessed in W7?By the way, anybody reading this that does not know about Cryptainer, should look at it very seriously, I now have no data files on drive C, & all my data files in the cryptainer vault are compact & virtually impossible to be opened without a password up to 100 char long!

View 3 Replies

Mount Usb From Pc In Lan

Feb 25, 2010

i would like to write a program in VB (VB6 or VB 2005) that allows users to use usb key connect to another pc.Can i create a virtual usb port that communicate with the physical port of the pc where the usb key are mounted?i have one pc where i've attached a usb key. I would like to share this unit with other pc in lan, but i don't want to share only the files stored in it, i would like to install a virtual usb that communicate with physical drive.

View 2 Replies

Imapi - Mount An ISO Through Code

Jul 6, 2011

I am looking for an API or something with the .NET Framework that would allow me to mount an ISO through code. Do you know of an API or any managed code that would allow me to mount an ISO?

View 1 Replies

Disable Auto Mount Using Mountvol On Windows XP?

Nov 4, 2009

How you execute the disable function of automount through mountvol in windows XP? The mountvol for XP is different from windows 7 where win7 has the mountvol /n. how to do that?

View 1 Replies

Creating A Virtual File Handle

Apr 30, 2011

I've been trying to find a Windows API function I can use to generate a virtual file handle in Windows. I'm working with VPC/xVM and I want to create a virtual machine that actually points to my physical hard drive - the methods provided with VPC and xVM for this really suck (I've never been able to get it to work with either virtualization product).

[Code]...

View 4 Replies

File Attachment Using Virtual Path In Asp.net

Mar 8, 2012

I'm working on an asp.net project which has a form with a file attachment capability. Since I'm uploading the form on a server, I can't use a physical path. How do I use the asp:FileUpload with a virtual path?

View 2 Replies

Asp.net - Accessing Image File From Virtual Directory?

Dec 24, 2011

I am trying to display an image from a Virtual Directory that is within my website. If I use the follwoing code the image is displayed on the on the Page:

Dim sourcefile As String = Server.MapPath("~/Common/Images/Flag.jpg")
Response.WriteFile(sourcefile)
Response.ContentType = "image/jpg"

But if I try displaying the image in an Image control useing the following code the image isn't displayed:

Dim sourcefile As String = Server.MapPath("~/Common/Images/Flag.jpg")
Image1.ImageUrl = sourcefile

Here is the HTML/ASP code:

<div id="contentQE">
<fieldset>
<span class="graytitle">The Flag Image

[code]....

View 3 Replies

Importing Class From Bin File Asp.net Virtual Directory

Jul 4, 2011

the problem i met is that i have iis 7 running on my pc.in the root file, wwwroot, i have a website folder, namely [apex] which is a virtual directory. in the folder is a bin folder containing a compiled class with namespace.then in an aspx file, i tried to import the namespace and use the class inside the namespace.

[code]...

the namespace and classname has been checked well, no mistake. but at compiling stage, i got "type is not defined " message. ok,then, in iis 7 control panel, i convert the whole website folder from "virtual directory" to "application" type. the problem goes away!

View 2 Replies

Create A Virtual Piano Using Pictureboxes To Represent Keys That Play .wav File Versions Of Notes

Nov 5, 2011

I'm trying to create a virtual piano using pictureboxes to represent keys that play .wav file versions of notes. I've gotten this to work fine; however, I'm having trouble with two features I want to implement.The first feature is to be able to save what I play in a text file. I thought I could use this code but I'm getting an error. [code] The second feature is to play random keys using the random class. Is there any way I could store the pictureboxes in an array and then use the random class?

View 3 Replies

Get File Size Of File On Mapped Network Drive?

Aug 11, 2011

I was using the following code to check the file size of a data file on my local machine. Now the data files have been moved to a mapped network drive and this code no longer works. What do I need to change or how do I access file size on a mapped drive?

Dim MyFile As New FileInfo(MyFilePath)
Dim FileSize As Long = MyFile.Length

View 12 Replies

WMI To Get Drive Letter Association With Physical Drive Path Misses CDROMs?

Feb 19, 2012

I'm running the following WMI script to get the associations between drive letters and physical drives on the system, but for some reason it omits CDROMs/DVD-ROMs. Can someone tell me how to get those as well?

Code:
ComputerName = "."
Set wmiServices = GetObject _
("winmgmts:{impersonationLevel=Impersonate}!//" & ComputerName)
Set wmiDiskDrives = wmiServices.ExecQuery _
("SELECT DeviceID FROM Win32_DiskDrive")

[Code3]...

View 12 Replies

Finding Physical Drive Number Using Drive Letter?

Jun 16, 2009

I have a program that allows the user to enter a drive letter into a text box. The program then takes the letter and find the physical drive number (i.e. deviceharddisk3..). It then stripes out everything and leaves me with the number 3.

In VB6 I used mDrive.bas from vbAccelerator.com and it worked perfectly. I have been all over the internet and back and cannot find a solution written in VB.NET.

View 14 Replies

Make A Tool That Will Assign USB Pen Drive A Drive Letter?

Oct 13, 2009

I want to make a tool that will assign a USB pen drive a drive letter, I am using WMI to acknowledge the device being plugged in, I can pull the deviceID, name, etc now I just need to work out how to assign the device to a drive and I just cant figure it out

View 4 Replies

Reading And Writing Files On External Hard Drive, Code To Ensure SQL Or Data Read/write Execution In Case Of Periodic Drive Reconnect?

Dec 18, 2010

The drive is connected via USB and the problem I'm having is that, periodically, while my code is executing, the usb drive seems to disconnect and reconnect. (Nothing to do with the program, but the drive itself).I want to find a way to prevent these temporary drive reconnects from interrupting my code. IE, i want to insure that whatever read or write that is requested is actually executed even in the case of a temporary drive interruption.

View 1 Replies

Determine If A Drive Is Local Or A Network Drive?

Dec 10, 2008

Does anyone know if there is a way to determine if a drive is local or a network drive?

View 1 Replies

Getting Physical Drive Number From Drive Letter?

Jun 17, 2009

I am trying to get the physical drive (device) number from the drive letter. If the user inputs the drive letter C the program will find the associated physical device number. For example if I input C then the result needs to be \Device\HardDrive1\... Some call it NT Device Name; I think. I have the code for VB6 from vbAccelerator, which works perfectly, but it does not work in VB.NET. My question is there a simple way of pulling the drive info that contains the drive letter and the physical device number. I have searched the internet and found nothing for VB.NET. I would post code but I have nothing for .NET.

View 1 Replies

How Can Read Data From USB Flash Drive Or Pen Drive

Sep 29, 2011

USB flash drive or pen drive in vb.net...

View 14 Replies

Physical Drive Number From Drive Letter

Jun 16, 2009

I have a program I am converting from VB6 to VB.NET and I am stuck at the very last piece of code. I need to determine what physical device number is associated with the drive letter.

The program takes the drive letter from a text box and goes and finds the device number (i.e. deviceharddrive3...) and strips out everything leaving me with the devicer number; in this case the number 3. I have searched the internet to and fro and found nothing in VB.NET.

My program in VB6 uses a .bas module from vbaccelerator.com called mDrive.bas and works great. I can't figure out how to convert it over to VB.NET.

View 6 Replies

Get URL Of File On A Different Drive From The ASP.NET Application?

Dec 15, 2009

I have a server with a C: drive and a D: drive. My ASP.NET application is on D: drive as follows:

D:inetpubvhostsmywebsite.com

I want my application to read and download files located on C:sessionVideos My problem is how do I create an URL pointing to the "C:sessionVideos" folder?

View 2 Replies

Run A File From A CD If You Don't Know What The CD Drive Letter Is?

Sep 13, 2010

I'm creating a small program using Visual Basic 2010 Express. I'm planning to place the program on a CD, along with the files I want to run. The program will have command buttons, and each button will open a different file.For example, if there is a file on the CD named ReadMe.txt, the user will be able to open it using the program, which is on the same disc as "ReadMe", by clicking the corresponding button (or link) ("ReadMe".)The problem is, that I don't know what the CD drive letter will be. Is there a code to make the program run a file which is in the same location as the program?

View 4 Replies

Searching For A File On A Drive?

Oct 29, 2011

I have been searching all over the forum and internet, but seems to have a hard time finding some help on how to search for a file at unknown location.

The reason is that, I made an easy form that helps some friends of mine find around a website more quickly.

Now this is what I want.

They have a game installed on the computer, and I want my program to search for this file and execute it afterwords.

F.eks

I have 4 HD's and WOW is on the 3rd. I want this software to search all the HD's to search for Wow.exe.

View 2 Replies

Access A File Using Relative Path Or Virtual Path?

May 22, 2012

I am trying to read and display a file using MapPath as follows :

Response.ContentType = "Application/pdf"
Dim FilePath As String = MapPath("../Document/123.pdf")
Response.WriteFile(FilePath)
Response.End()

This procedure will work fine and display in the browser. However, if I save the file to C:Document123.pdf, how can I access this file using relative path in MapPath function. Is there an option to access the file which is saved out of IIS server? I am using vb.net 2003.

View 1 Replies

Can Insert A File Into A Shared Drive

Nov 15, 2010

We have a shared drive which has a folder in which we programatically store the reports we create in MS Access. Sometimes the user will lose the rights to insert the files in (write access) to that folder. But we are not shown any system generated error messages for this while adiing the reports. At a lter point of time we will come to know that those reports were not saved.I am looking for a code to check whether we have the write access to the particular folder and if not, throw a suitable error message.

View 3 Replies

Deleting A File From The Hard Drive ?

May 19, 2011

I have a VB.Net 2010 app and need to delete a file from the hard drive when the app opens up (cache file). What command will perform this action? I know the name in advance, so I can format the command right in the app.

View 1 Replies

Deploy .msi File From Network Drive?

Jun 30, 2009

I have developed a visual basic app in Visual studio 2008. I have created a windows installer file. Can I deploy this on a network drive and does .NET framework have to be installed on server? The application has a MS access database associated with it, so I would like to have it backed up via the network.

View 1 Replies

Detect If A File Exists Within Drive C:?

Jun 18, 2010

I need to detect if a file exists within drive C: but I do not know in advance in which directory it should be located so this means that I have to search the entire disk. Is there a way to perform this process directly (through an existing method for example) or do I have to write code for getting the directory structure and search each directory?

View 3 Replies

Getting Error When Try To Save File To Drive C

Sep 21, 2011

The application i installed at pc is function. But just when i want to save data into drive c through the application. the access is denied.

View 10 Replies

Open A File Without Specifying Drive Letter?

Mar 12, 2010

i was wondering if there is any way to read from a file in the application directory without specifying the drive letter. Here's what i have:Dim var var = My.Computer.FileSystem.ReadAllText("c:appdirectoryfilename")

If i leave off 'c:' it looks for it in system 32 or something. why can't i just say

ReadAllText("filename")

View 6 Replies

VS 2008 Search Every File On Specified Drive?

May 7, 2009

i have done this a couple of years ago but i completely forget how i did it. I want a means of searching every file whether it be in sub folders, or sub folders of the sub folders and comparing the attributes of the file.

In other words, my program will search every file on the computer. For each file that it searches my program will attempt to io.file.readalltext etc.. the file. If the contents eqaul "....." then actions will hapen. If the file is greater then a certain size then actions will happen etc...

I want to see the attributes of each searched file, i will be using Dim FI as new FileInfo().

So how do i search each file in a directory? and all directories in the directory and so on?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved