Restrict Access To A Drive In Windows?

Feb 3, 2010

i need to restrict access to a drive in windows using vb.net

View 4 Replies


ADVERTISEMENT

Restrict Drive Access?

Feb 3, 2010

I need to restict access to a drive using vb.net code

View 3 Replies

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

Restrict Access To AVI Files?

Aug 7, 2010

I need to create a helpsystem for my work. There's two user types ... common users and admin users. The common user needs to se all stuff except admin stuff - admin must see it all.

I use Camtasia to make screencasts - AVI files, which I need to put in my helpsystem. Seams like I can't stream the AVI from embedded resources, so I guess I need to save the AVI files to the users harddrive.

I need to copy all stuff to the client PC in case of network problems.

how to I prevent common users going to their harddrives and watch admin AVI files?

View 8 Replies

Restrict Access To A Tab In A Form Application?

Apr 25, 2011

I am building a simple windows form application in Visual Basic 2010 with two tabs. It's a program that will allow a business to enter contact information for display to an end user client.

One tab displays the business contact information for the end user client, which I have the data filled from a App.config file.The other tab acts as a settings page. The business fills in their contact data on the settings tab for the App.config file.

Once the business contact information is entered into through the settings tab, I want to be able to restrict the end user client access to the settings tab.It doesn't need to be highly secure, just a way to prevent the average end user from getting into the settings tab.

View 6 Replies

Restrict Windows Service To Start After User Login?

Apr 20, 2012

I have developed a windows services that Log On As "Local System" account with Statup Type "Automatic". I understand that windows services starts before user logins. But I want my service to start when ever user logs in.

View 3 Replies

Restrict A User From Using A Double Clicking Event With Access Level?

May 10, 2009

I have a login page, which a user will have to enter username, password and accesslevel. Accesslevel is either 1 or 2. 1 for admin and 2 for users who are restricted from using certain functions. I have this module set up so that I can make use of the accesslevel throughout the forms that I have.

Module ModuleAccessLevel
Public AccessLevel As Integer
End Module

Arjun taught me how to make use of this module, so now I know how to restrict users from using certain buttons, toolstrips by doing the following:

[Code]...

View 3 Replies

.net - Secure Pen / USB Drive - Windows

Jun 16, 2011

I want to built an application using VB.NET so USB drive can be enabled/disabled [without OS Restart] to secure from file being copied without owner's permission! Before putting - or down vote, write your reason to do so

View 1 Replies

Access A Networked Drive Via Web?

Feb 4, 2010

We have around 2000 staff. Each has a shared drive to store some of their files. This shared drive points to a central location on our network.[code]...

Each user will have a folder within the root "ournetwork" labeled with their username. I do not have to worry about the directory creation as that's already done for me. These users are all tied into our AD for authentication. Folder name == AD username.

We would like the ability to allow our users to access their mapped "F" drive from outside our network through a web page. I understand that the programming involved (assuming it comes to that) will not rely on their mapped drive but rather the UNC path as posted above.

I am open to suggestions on how to get this accomplished. ASP.NET? Is there just an IIS solution like WebDAV? (although client-side WebDAV on win 7 seems to be broken, so that may be off the table).

View 1 Replies

Deny Access To A Drive?

Feb 4, 2010

I want to deny access to a drive using vb.net code.

In folder guard software we can deny access to a drive or make a drive read only

i want to implement that function in my application

View 5 Replies

Flash Drive As Access Key

Nov 15, 2011

how to code an administrator and non-administrator account in VB.net to authenticate a specific user account when mounting his removable device? what will we use, to provide a special key on a specific flash drive?

View 1 Replies

Map A Network Drive Over A Windows Service?

Mar 2, 2010

How can I map a network drive over a Windows Service. What I did until now.

Using the Shell command. -> not working.

vb.net

Shell("net use \" & My.Settings.ParaRootPath & " " & My.Settings.ParaPasswordHTTPS & " " & "/user:" & My.Settings.ParaLoginHTTPS)

Using a System.Diagnostics.Process object. -> not working

vb.net

ShellExecute As New System.Diagnostics.Process
ShellExecute.StartInfo.RedirectStandardOutput = True
ShellExecute.StartInfo.FileName = "cmd.exe"

[Code].....

If I run the application as normal application, it is working correctly.

View 2 Replies

VB Windows Service That Maps A Drive Then Uses It?

Feb 22, 2012

How to map a network drive to be used by a service. My question is relatively similar, and I realize there are others that are.. but I can't get it to work. I am creating the service thru visual studio 2010.

I attempted to map using WNetAddConnection2- and it successfully maps and is instantly lost (check if drive is mapped right after mapping it). I tried something else. saw some information about using WSH.. I added the reference and tried using wsh... didn't work.I tried WNetUseConnection and that failed as well.

Attempted running the service under a different profile- that didn't work Once I actually get access to the network drive, i need to copy files from that share into a local directory. Maybe I'm missing the boat here but If someone could give me a thorough explaination of what is actually going on and a direction to head I can probably figure it out

View 1 Replies

Access Pen Drive (MP3 Player) Via FileInfo?

May 13, 2009

I've got a Samsung Q1 attached to my computer, and I was hoping to use the FileInfo / DirectoryInfo objects to access the file on the device, however what I right click on a file in windows explorer I get a location of COMPUTER/Q1/DATACASTS/mine.mp3, and when I feed this into the DirectoryInfo object I get "Invalid network drive"

Something tells me I'm going about this the wrong way ... Is there a differant object I shoud use, or is my location string incorrect in format

View 1 Replies

VS 2010 Mapped Drive Access?

Jan 5, 2012

I am trying to run a visual studio 2010 app from a windows 2003 server machine that writes xml files to a folder stored on a remote windows 2008 server. I mapped the server drive and can access the folder manually but in the code the 'access is denied' error is hit when the file path declaration is hit for that 2008 server folder. I checked the access writes to that folder and made sure it is shared for that user. Also the user I am logged into on the source server has admin rights so should it not be able to access the mapped drive through the application?How do I grant my app access to that or any folder on that drive on the remote server? I had this issue before but cannot remember what I did to clear this up.

View 1 Replies

VS 2008 - Determining On Which Drive Windows Installed

Dec 5, 2009

I wrote this code to try and figure out which drive Windows is installed on - it basically starts with C and looks for the first "fixed disk" with a Windows folder.

' Start with c: and look for first fixed drive (type=3) with a windows folder
Dim getInfo As System.IO.DriveInfo
Dim m_start As Integer = 67
Dim m_drv As String = Chr(m_start) & ":windows"
[Code] .....

View 2 Replies

VS 2010 - UnauthorizedAccessException - When The Program Tries To Access The D Drive

Jan 11, 2012

I recently reformatted my computer and now that I try running a program I made beforehand, I always get an UnauthorizedAccessException when the program tries to access the D drive. How do I make it authorized? I tried changing the security settings for the D drive but that wasn't really much help.

View 1 Replies

Windows 7 FileExists Error - Get The Drive Letters To Work In The IDE?

Jul 11, 2011

I'm running Visual Studio 2005 SP2 on Windows 7. When I'm in the IDE and execute a My.Computer.FileSystem.FileExists, or DirectoryExists or CopyDirectory, etc. that accesses a network drive using the drive letter (i.e. L:) it thows an error. If I use the full UNC (\computernamesharedfolder) it works. However, if I go into my project's bin folder and run the compiled .exe from there, the drive letters work. I've tried running VS.Net as admin and it makes no difference. How do I get the drive letters to work in the IDE?

View 3 Replies

Access File On Share Drive With Specific UserID?

Feb 12, 2010

I need to access (windows apps) the file with a specific account (file located on a share) something like this: Dim myFileInfo as FileInfo=New FileInfo(FileName) ,UserID,Password.

View 4 Replies

Access Is Denied To Copy An Exe File From Resource To A Hhd Drive?

May 17, 2012

Imports System.IO
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[Code].....

but alwys i get thie error access to the path e: is denied but the hard drive is accessable, so how i copy a fil from resource to a a disk drive like F: /

View 2 Replies

DB/Reporting :: Can't Open Access Database On Mapped Drive

Dec 8, 2008

I can't open an Access database on a mapped drive. However it works if I use the UNC path. how I can get this to work? See the code below for an example of what works and what doesn't...

Code:
mConnString = "provider=Microsoft.Jet.OLEDB.4.0;Data Source=\tiger-2000dvb_mt7MTrackBE.mdb" ' This works
mConnString = "provider=Microsoft.Jet.OLEDB.4.0;Data Source=T:vb_mt7MTrackBE.mdb" ' this does not work
Dim objConn As New OleDbConnection(mConnString)

[code].....

The error message I receive is...'T:vb_mt7MTrackBE.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.I've done the obvious and verified that t:vb_mt7MtrackBE.mdb is a valid path.

View 3 Replies

How To Access Network Drive Through Usual System.IO Classes

Feb 28, 2010

My software handles multiple operations on files, and I have now finished writing the related functions, using the System.IO classes. I now need to add support for network drives. Using a mapping works very well (although Directory.GetFiles is a bit low, and I don't know why), but I'd now like to be able to deal directly with paths such as \192.168.0.10Shared FolderMyDrive. Is there any way to handle this type of paths other than mounting the drive to an available drive letter, using the newly generated path, and then unmounting?

View 4 Replies

Mysteriously Lost Access To A Mapped Network Drive?

Aug 5, 2009

I had a basic text file reader/writer program that wrote and read from a mapped, shared drive up and running for a couple weeks. I wanted to add just a couple more things that shouldn't have effected the program (the ability to write another text file), and now the program can't find the shared drive. The error I get is: Could not find file '<file location>' with <file location> filled in with either the mapped name of the drive (X:) or the unmapped name (\servercomputer). Both are copied directly from windows explorer, so I know the path is right. I'm a bit of a beginner, but I'm pretty sure that all the required permissions are in place, and all users have access to this drive.

To further complicate things, it is not consistant. Some commands appear to have no trouble reading off the mapped name, but don't read the unmapped name, and vice versa. Others won't take either. Sometimes the code will execute perfectly up to the middle of the code (accessing the shared drive a couple times), and then it will give this error. If anyone could point me in the right direction,

View 1 Replies

Read Access To Physical Drive Without Admin Rights?

Feb 20, 2012

I am trying to read some data from the MBR using CreateFile, but I cannot get it to work without admin rights. The code I am using is like this:
hDevice = CreateFile("\.PhysicalDrive0", GENERIC_READ, FILE_SHARE_READ Or FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0)
Is it possible to read data from the MBR without admin rights?

View 1 Replies

Adding Call Functions For Defragment Hard Drive And Other .msc Tools For Windows?

Jun 2, 2011

My problem is that I am creating system tools for windows with a good gui and I don't know how to start with it. One of my difficulties is making code for calling any window tools for example, defragment.msc, backup, system restore, registry editor(I knew there's already a thread in here but it is closed).In short, I will create a "Utility tools ALL IN ONE" for my project somewhat like a registry cleaner or advance system optimizer and the likes.

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

Windows Service Unable To Access A File In Program In Windows 2003 Server

Mar 12, 2010

I have a .net Windows Service developed in VB.net. I have a settings file in the root directory called Connections.XML and I am setting the basedirectory [code]...

When I schedule the service this is working absolutely fine in my Windows XP machine. But when I installed the same service in our development server (Windows 2003 64 bit Server) for some reason it is not able to locate this file.

View 1 Replies

Access Denied To The Path While Writing A File In Windows 7 Using Windows Application?

Jul 4, 2011

I am having a windows application. That downloads files from server and write into the local directory. It works fine. When we try the same appliication in Windows 7. IT shows an error Access to the path denied (While writing to the local directory).

View 1 Replies







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