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


ADVERTISEMENT

Run A Application In A Share Drive?

May 13, 2010

I developed a Visual Basic Program in my laptop. I can run the program form my C Drive and works perfectly.

Then I put the program in a Share Drive and:

1. If I run the program from my laptop but in the Share Drive I get this Error[url]...

2. If I run the program from my desktop and the Share Disk it is works perfectly.

3. If I run the program from a different user desktop and the Share Disk I get this error[url]...

I suppose it is a Security Issue or something like that but I am not totally sure and I do not know how to fixe it.

View 4 Replies

IDE :: Get The Drive Letter Of Where My Application Is Started ?

Jan 29, 2010

So I need everything from declarations of variable to the actual code.When you answer it in high level that destroys the chance of others answering the same.I would like to get the drive letter of where my application is started in VB2008.

View 2 Replies

Application Hang Whenever Plugs In A Thumb-drive

Oct 11, 2011

I have a client who is causing my software application to "hang" whenever he plugs in a thumb-drive and copies files. My software is using none of these files... can anyone hazard a guess at what's going on?

View 14 Replies

Application Event To Check Network Drive Availability

Nov 29, 2011

I want to execute some code when a network drive is available. Just like our application even have NetworkAvailabilityChanged. I want this to work just like our Application Events.

Private Sub MyApplication_NetworkAvailabilityChanged(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.Devices.NetworkAvailableEventArgs) Handles Me.NetworkAvailabilityChanged
End Sub
Private Sub MyApplication_Shutdown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shutdown
[Code] .....

View 3 Replies

Drive A Crystal Report In A Standalone Application With .NET Objects?

Jul 17, 2009

I'm trying to learn Crystal Reports (VS 2005, VB) and per this question I was trying to drive the report with my own data objects instead of through a DB connection.

I found this tutorial and it looked promising as an answer to my question, but after diving in it only seems to apply to web development.

Am I out of luck in trying to power a Crystal Report with .NET objects in a standalone application?

View 2 Replies

Create A VB Application That Auto-loads When Insert A Flash Drive?

Nov 27, 2010

I want to be able to create a VB application that is on a flash drive and will run as soon as I insert the flash drive into a computer.

View 7 Replies

Create An Application To Copy Pics From Camera To Hard Drive?

Mar 7, 2010

I�m trying to create an app to copy pics from my camera to my hard drive. Problem is when I connect the camera it shows in �My computer� but not as a logical drive. Is there any way I could access my pics using vb.net without the need for the camera SDK which is not available for my camera model.

View 2 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

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

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

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

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

File Transfer And Save On Local Drive

Feb 5, 2010

I'm sort of new to the vb 2008, and I would like to be able to send a file to another computer and save it on the local drive. Doesn't have to be in any certain folder, but just on the c drive. I know for the old visual basic you would use winsock for this, but in 2008, they have removed it. What and how will I do this. There will be no program on the user's computer. This is done all from one computer sending to another with no program listening on it. This computer is on my network with network sharing, so I can just do like a \computernameorIPaddress and open send the file that way.

View 2 Replies

To Search File From Textbox In Entire Drive

Jun 19, 2011

Can We make Search like feature using VB.Net? Search should look for files given in textbox in the selected drive(c:,D:,e,etc) or from drivelistbox.

View 2 Replies

VS 2008 File Watcher - Watch The Whole Drive?

Jul 12, 2010

Does the File Watcher class in VB.NET only watch one folder? Or can I have it notify me of any change in the whole drive?

View 4 Replies







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