[2005] Grant Folder Access To All Users?

Jan 20, 2009

In my application, I create data and log folders that must be shared by all users using this computer. I did a lot of research, and I found a function that is supposed to grant full access to every users of a folder and its children. However if right-click properties on my folder, the access is unchanged. ow should I grant full access to all users of a folder and its children (I don't care who created it, all users should be able to read and write to that folder)?

Public Sub GrantAllAccess(ByVal Folder As String)
Try
Dim DomainUser As String = Environment.UserDomainName & "" & Environment.UserName

[code].....

View 5 Replies


ADVERTISEMENT

Adminstrative Privileges - Grant Rights To Just The Folder Where I Am Writing Data?

May 20, 2012

I understand all about giving Administrative Rights via the manifest. However...I'm sure I will have customers that may not want users to have Admin privileges. Is there a way I can grant rights to just the folder where I am writing data to(database and pdf files). The folder will be in Program Files/my company/....

View 5 Replies

VS 2005 Removing Folder From Users Programs Menu During Uninstall?

Mar 22, 2010

how to remove a Folder created in Users Program Menu under File System, when an application is uninstalled? During installation of the Application, a link is created at the users desktop and also in Users Program Menu. However during uninstallation the link for the Users Desktop and User Program Menu is removed, but the Folder created in the Users Program Menu remains.

View 4 Replies

Add Folder To Current Users Mymusic Folder During Setup Deployment

May 14, 2010

How to add folder to the current users mymusic folder during setup deployment?

View 2 Replies

Creates A Root Folder And Sub-folder In The Users C-drive?

May 11, 2010

I have a program that creates a root folder and sub-folder in the users C-drive.I unfortunatley did not think this through propaly. Senario = if a user does not have access to the C-drive and just has an account to thier 'My Documents' then they cannot use this program.How i achieve the C-drive root-folder, sub-folder, and eventually text file creation is as follows;

If
My.Computer.FileSystem.DirectoryExists("C:AMSFTAMSFT_RunnersDetails"
+ Label81.Text) Then[code]...

I do not what to change the format of this code too much as it is embedded heavily in my code, what i want to do is instead of checking and creating these folders and text files in the C-drive, i would like to change the location to a potentially unrestricted area, eg; 'my Documents'. how to alter this code to achieve this?

View 12 Replies

VS 2005 - Using FileSystemObject To Access All Files In Folder

Apr 5, 2010

I am looking to access all the files from a selected folder . The folder is selected through a folderbrowserdialog. My problem is using a filesystemobject in Visual Basic of Visual Studio 2005 to store the filename and path in a folder object. I have done the same using VB6 and it worked.

The following is my code in VB6.
If filesysObj.FolderExists(folderSel.Text) Then
Set folderObj = filesysObj.GetFolder(folderSel.Text)
For Each fileObj In folderObj.Files
file_name = fileObj.Name
firstpos = InStr(file_name, "fcs_")
[Code] .....

Now, I am trying to make changes to my Vb6 code so that it works with VB2005. Following is what I have done so far:
Dim folderObj As String

If My.Computer.FileSystem.DirectoryExists(folderSel.Text) Then
folderObj = System.Environment.GetFolderPath(folderSel.Text)

I am getting an error (InvalidCastException) on line, folderObj = System.Environment.GetFolderPath(folderSel.Text). The message I get is: Conversion from string "C: empfolder" (which is the path) to type 'Integer' is not valid.

View 1 Replies

Unable To GRANT SELECT To A Table?

Jan 15, 2012

I have a program that I wrote that creates a database in SQL Server called States_02 as a sysadmin user. Later on I want to grant SELECT permissions to that database to another user, web I always get an error that it cannot find States_02 or I don't have permissions to do it. My Code:

Dim Conn As New OleDbConnection(ConnStr)
Try
Conn.Open()

[Code].....

The user has public and sysadmin server roles and is the same user who created the database. This user can also login to SQL Server and grant the permissions manually.

View 3 Replies

[2008] Find A Folder That Is Shared Between All Users Of A PC

Mar 9, 2010

I need to find a folder that is shared between all users of a PC, every body being able to read/write to that folder and below, without any errors. I think that the folder "C:Documents and SettingsAll UsersShared Folder" would do the trick. How do I find the path to that folder, regardless of the OS used (Xp / Vista / 7) and regardless of the Windows language (With a french Windows, this folder is called "C:Documents and SettingsAll UsersDocuments partag").

View 5 Replies

Rename A File In The Current Users AppDatLocal Folder?

Mar 10, 2010

Im using Visual Studio 2008 This is my first program I renamed the program for the forum. If I remove the paths and execute my .exe from the AppDatalocal folder where the settings.ini file is it works fine, but I don't want have to run the program from there. I tried using %Username% for relative paths, but the computer can't follow the path. Do i have to write code to get the current username or how do programmers do this? Here's part of the program

[Code]...

View 2 Replies

Ensure The Installation Of An App Is Installed In The Startup Folder/quick Launch For All Users?

Jun 2, 2009

what's the simplest way to ensure the installation of my app is installed in the startup folder/quick launch for all users , even if my app is not installed from the owner directory?

View 7 Replies

VS 2005 Creating A Folder And Enter The Folder Name In Database?

Jul 26, 2009

I have a button which on click creates a folder where the user wants. But as soon as the folder is created i want to save its name to the database(Access) The database contains one column named "FolderName"

Here lies my code that i tried:

Imports System.Data
Imports System.Data.OleDb
Public Class Form1
Dim con As OleDbConnection

[Code]...

View 6 Replies

Create Zip Folder Which Embedded A Folder And Ms Access File?

Mar 4, 2011

After I run the setup to install the program, I will use the program to capture image and answer a survey.Having said that, I have a folder contains image of image capture and database using Ms Access 2007 in my program . Is it possible to make it both in one zip folder (Embedded both together in one folder and locate it in desktop?

View 6 Replies

VS 2005 Users Permissions?

Apr 12, 2010

Now i'm working with users so for each user there are many permissions like add, update, view and delete, but i was thinking create a bit type data for each authorization, then i would load each one with 0 or 1 and show only the authorized form for the user. Could I do this? or there a better way to do the same?

View 7 Replies

[2005] Preventing Users From Using IE?

Jan 6, 2009

Does anyone have any experience in writing VB.Net apps that control Internet usage? I have a friend that needs to have her office computers monitored in order to prevent the users from playing on the internet. I'm not sure what the best approach to this issue is.

View 9 Replies

Access Users Cookies In VB?

Dec 11, 2009

I am trying to write VB Code that would allow me to access a users cookies from their PC. Is their any code snippits that any of

View 2 Replies

Users Should Not Have Access To SQL Server

Apr 13, 2010

Is it feasible to deploy a VB.NET windows forms application with a SQL Server back end where no users have direct access to SQL Server? The idea is that there is no way someone at the client site with admin capabilities could mess up the data definition, or directly alter data. I always assumed that somebody with the client should get admin capabilities, but perhaps not.

The application will have to have the capability of creating logins, doing backups, perhaps running scripts (encrypted?) For upgrades, and whatever else a user with elevated privileges would do. I guess the application would have a hard-coded account with admin privileges for this purpose. Is this a common way to deploy an application? The application uses SQL Server Express, which is installed with the application. The database will be installed with the application.

View 2 Replies

VS 2005 Creating Different Instance For Different Users?

Aug 29, 2009

I have created a multiuser application and at different user login i want to create different instances of the application.How to do this? Can somebody give the concept of how to approach this?

View 14 Replies

VS 2005 Error On Users Computer

Jul 28, 2011

I have someone who downloaded my program using click-once. My program allows user to read a .txt file and then manipulate data The user selects the file to open by goin gto File>Open on menu strip

I have a user who gets an error message upon clicking on File Open

It doesnt open up the OpenFileDialog return ans unhandled exception

Method not found System Windows.Forms OpenFileDialog get_SafeFileName

Anyone have an idea what i should be looking at I cant re-create it on my end

View 16 Replies

[2005] Able To Set Permissions For Users As They Log Into Our Software ?

Jan 31, 2009

My problem is that i want to be able to set permissions for users as they log into our software. When the program loads the users get the logon screen. Then once authenticated (in SQL)they can access all of the forms. What i want to know is can i create some sort of access levels. So for example if i was to login to the software as admin then i can see the "system" menu whereas if i login as someone else they cant see the menu. Can it be done in SQL, like my authentication. Even if we added an extra column called access then if it was set to 0 you are an admin and if it is set to 1 you are standard.

View 3 Replies

Using .net To Access Users Signed Into A Domain?

Mar 23, 2012

Looking for some .net snippet on accessing what users are logged into a domain. I have looked through all the AD namespace and okay with that in getting static items. Specifically, NOT looking for current logged in user for a given machine(have that as well). Looking for a list of users that are currently signed into a Domain.Essentially, I want to pass a user (or list of users) to a method that will check to see if the user passed in, is currently logged into the network (AD).

View 6 Replies

VS 2005 - Sending Instant Alert To App Users?

Apr 15, 2009

I have a vb.net (VS 2005) application which downloads files from my webserver and shows its contents to user. And I make files at my end and upload files to webserver so that the application and download & process it. This happens at fixed intervals. Now I intent to send an instant alert to users who are using that application. For example: If I type a message and send "Hello everyone" then all those people who are currently using that product should get a popup with this message. My webserver is a hosted on a unix based system. It enables me to show html content and post files & stuff online. In order to achieve my goal of sending an alert which users should get immediately what do I need to do?

View 6 Replies

Access 2003 Network With Multiple Users

Apr 30, 2012

I know my Question was asked maybe 10000 times before, but i really did not take the chance to search the forum coz i really short of time.
I have *.mdb DataBase with 20 tables each table have more than 10 fields, i'm trying to automate the MDB file from a network like that 5 PCS + One vb.net exe program (5 users) working on the same time on the exe that is connected to the database , my questions are :

1) How much risk is it to put the database into one (shared) folder and connect it to the program ?

2) What is the best way to establish this method ?

3) Is there any alternatives ?

View 4 Replies

Access To The Path 'C:Users..My Documents' Is Denied

Nov 23, 2011

I'm trying to collect directories and add to TreeView. In Windows 7, there is a "Documents" folder under Libraries which is basically linked to "My Documents" under "Users". When I click "Documents" in the TreeView, I can get a list of all subdirectories by using

Dim dirs As String() = Directory.GetDirectories(strDir)

View 3 Replies

Add Additional Users To Application But With Different Access Levels

Jun 21, 2010

i'm developing an application with vb.net and mysql. I want to add additional users to the application but with different access levels. this is my original code [code]If i add a third parameter named level to the sql statement, how do i determine which form shows???

View 3 Replies

How To Access Remote Registry Users Volatile

Feb 26, 2010

I'm trying to return from a webpage, the remote HKCUVolatileCLIENTNAMEHere's what I'm doing so far:

Get the Machine Name via DNS - this bit works great:
Public Shared FunctionGetMachineName(ByVal String

[code].....

View 2 Replies

Php - Prevent Users From Being Able To Access A Webpage Via Web Browser?

Apr 18, 2010

This program is going to submit GET data to our webpage. However, we don't want users accessing the webpage any other way than the program. We can prevent users from sharing the program using HWID authentication, but nothing prevents them from using a packet scanner to get the URL of the webpage. We thought about user-agent authentication, which we will implement, but user-agents can easily be spoofed.

how can we prevent users from accessing the webpage directly, instead of through the program?

Currently we will be implementing:

HWID Authentication to use the program User-Agent Authentication to access the web page Instant IP Blacklisting to anyone accessing the webpage without the proper User-Agent

View 4 Replies

2 Users Open Same Ado Record (SQL Server 2005) Via VB6 Front End?

Oct 26, 2009

is there a way to tell if the record is currently open (for editing) by another useregclerk 1 gets recordset for a person. pessimisic lock, client cursor.

View 1 Replies

VS 2005 Users Authentication - Authenticate Each User Every Time

Apr 12, 2010

I want to authenticate each user every time. in vb 6.0 i used this

Private Sub cmdIngresar_Click()

Dim rs As New ADODB.Recordset
Dim strConsulta As String

[CODE]...

So, my question is how could i modify it for vb2005, because vb2005 don't use recordsets?

View 4 Replies

Developing An Access Database That Will Be Shared With Multiple Users?

Aug 22, 2008

I am developing an access database that will be shared with multiple users.I don't want the users to access the database directly so I will have them enter new data on a data access page. The data access page is stored on a Microsoft Share Point web page, and the database is stored on a network drive.Here is my problem: When new data is entered on the web page I need it to trigger a WillChangeRecordset event; however, I have not been successful because the web page does not declare a new instance of a recordset object.At a minimum I need the new data to be processed before the web page appends the new data to the table.

View 3 Replies

Possible To Have An Access Back-end Database Available For Multiple Users On The Same Network?

Nov 5, 2011

I am developing a Visual Basic .NET application to be used by the staff of a small training centre nearby. The front-end (UI, menus, etc.) will all be in VB .NET, and there will be a back-end database for storing all of the required data, such as student records and meeting information. What I would like to know is if it's possible to use a Microsoft Access database for this purpose, and have it accessible by all the staff in the centre (on the same network) at the same time. For example, would I be able to put the database in a shared network folder, and have a copy of the VB application on each PC that would all be able to read/edit/add to the database?

View 2 Replies







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