[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


ADVERTISEMENT

Asp.net - Public Shared Variable Shared Between Users?

Mar 30, 2012

I've taken over the maintenance of the website (ASP.NET VB) and on one particular page I noticed the below code

Inherits System.Web.UI.Page
Public Shared UserNumber As String
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init

[Code]....

My question is whether the variable UserNumber can be accessed or changed by any other user than the current one?

View 2 Replies

VS 2008 Create A Shared Folder On A Remote Machine?

Sep 30, 2010

Is it possible to create a folder on a remote machine that has no previously shared folders? I can do this...

vb
Dim fname As String = "\10.1.x.yDocumentsMyFolderName"
IO.Directory.CreateDirectory(fname)

[code].....

View 3 Replies

Public Shared Function(folder In 'Dim Folder As Nvironment?

Aug 6, 2009

if you could see everthing but the thing I'm having trouble with the Public Shared Function(folder in 'Dim folder As nvironment.SpecialFolder' is the problem)

Option Explicit On
Option Strict On
Imports System.IO

[code].....

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

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

VS 2008 Cannot Find The Application Folder

Nov 17, 2009

When I install my Application on a computer, and look in the program folder with explorer, I can not find the application folder,

View 14 Replies

.net :: Shared Folder Permission?

Jan 12, 2010

I use this code to share folder:

Public Sub Share()
Dim managementClass As New ManagementClass("Win32_Share")
Dim inParams As ManagementBaseObject = managementClass.GetMethodParameters("Create")

[code].....

View 1 Replies

Put Onto The Shared Folder Of Every System?

Jun 1, 2011

creating ones own folder structure through tree view similar to the windows explorer for a windows application,will the application work on all the systems over the network?? will the files added to the folders (of the treeview in the application),visible to all.or would the exe be required to be put onto the shared folder of every system?? what will be the exact architechture???

View 9 Replies

Trying To Set Shared Folder Permissions

Jan 30, 2008

I found how to create a share in C# using the ManagementClass to create an object to reference the Win32_Share class and the ManagementBaseObject class to access the members of the Win32_Share class.My problem is that I want the "Everyone" permissions to default to Read only.When I set the share via Windows Explorer it works fine but the code in my C# application is allowing Full Control and Change permissions along with Read permission.I tried using the DirectorySecurity class but that blows away the Security permissions (under the Security tab)without affecting any Share permissions of the Everyone group (under the Share tab).I don't want to change the Security permissions, I want to change only the Share permission (you know, the permissions that appear when you hit the Permissions button on the Share tab).

View 4 Replies

Can Get API To Just Create A Basic Shared Folder

May 25, 2010

NetShareAdd API from a VB.NET application (.NET version 2.0) and although I can get the API to just create a basic shared folder I now want to create a shared folder and specify its Share permissions (not NTFS permissions) as well, which means I have to pass in a SHARE_INFO_502 structure rather than just a SHARE_INFO_2 like I was previously doing for creating a basic share. I have spent over 5 hours solid just trying to get this working and am getting to the point now where I really cant think of anything else to try.I've encountered several problems whilst trying to make this work but the one I am finally stuck on is this: When I call NetShareAdd it returns the error INVALID_PARAMETER and the parm_ err object (which is supposed to specify which member of the SHARE_INFO_502 structure caused the error) holds the value 501. I know it is something to do with the security descriptor because if I comment out the line where I set the SHARE_INFO_502 structure's shi502_ security_descriptor field then the code works without an error (just obviously does not set the share permissons I want).I think posting all of the code here might be a bad idea as its currently over 150 lines long (yes that is only code for getting this API working...) so I'll just post my definitions of the SECURITY_DESCRIPTOR structure and the code I am actually using to call the various APIs involved: [code] Each of those API calls prior to NetShareAdd returns a non-error value in the Debug.WriteLine that is done after each one, but there is obviously an issue somewhere with the security descriptor.

View 2 Replies

Check If A Shared Folder Or Ftp Path Is Available

May 27, 2009

Is there a code checking that whether a shared folder is available?? Or check whether ftp path is available?

View 2 Replies

Creating One Folder And Making It Shared

Oct 7, 2009

i am doing a vb.net windows application. in that i am creating one folder and making it shared and also assigning shared permission to SYSTEM. My code is as given below.

[Code]...

View 1 Replies

Read A File In A Shared Folder?

Dec 2, 2009

I need to open a file on a shared folder which is in another computer that is conected to my computer through a network switch.

View 2 Replies

Shared Folder Monitor In Program?

Jun 26, 2011

Can you give me a function or class which have properties?[code]...

View 5 Replies

VS 2008 Database Search - Using SQLClient That Loops Though All Users In A Users Table

Dec 29, 2010

I've got a code using SQLClient that loops though all users in a Users table inside each loop i want to preform another search in the UserOrders table, thus doing a count of all orders.

I get this error

HTML

There is already an open DataReader associated with this Command which must be closed first.

Here is my code

vb.net UserLists.Items.Clear()
Dim connection As New SqlClient.SqlConnection(My.Settings.ConnectString)
Dim command As New SqlClient.SqlCommand("SELECT * FROM Users ORDER BY PersonName",

[CODE]...

View 3 Replies

.Net - Open Remote Shared Folder With Credentials?

Sep 26, 2011

I need to open a folder on a remote server with different credentials in a window (explorer.exe).I managed to do it with no credentials (my credentials), but when I do it with another username and another password than mine, it opens a prompt to enter a username and a password, and it says "access denied".

In the access log on the remote desktop, it says that I tried to connect with my own username, and not the other username I entered. So, the process obviously did not work.

[Code]...

View 1 Replies

C# - ASP.NET's App_Code Folder And Shared/Static Classes?

May 15, 2011

If I have a 'Shared' object defined in the App_Code folder; is that object shared amongst all users/visitors of my website? Or is it shared on a per-user basis?I don't know if that makes sense or not; but I've got a puzzle/solver I'd written earlier that I'm trying to incorporate into a simple ASP.Net site. It's probably poorly written, but I'd used a Shared boolean to determine if a solution had been found. The code works, now as an ASP.NET site, but if two visitors to my site were both validating their puzzle at the same time, would they both be accessing the same boolean?

View 3 Replies

File I/O And Registry :: Shared Folder Monitor In .NET?

Jun 26, 2011

give me a function or class which have properties ?For example:I shared a folder (C:shared)

Dim clsObj as new clsSharedMonitor("C:shared")
'so that I can get its properties like:
clsObj.FullPath() 'Full Path of folder that client are accessing
clsObj.ClientIP() 'IP of computer which access to server

[code].....

View 6 Replies

My.Computer.Network.DownloadFile From A Iseries Shared Folder

Nov 6, 2009

I have a problem when i use My.Computer.Network.DownloadFile from a iseries share path

View 2 Replies

Read And Write Files To A Shared Folder On A Network

Dec 2, 2011

All i am trying to do is read and write files to a shared folder on a network in visual basic (VS 2010). I can go to the folder through windows without a problem and without being prompted for a password. However when i try to do it through visual basic, it cant find the directory. Here is my small snippet of code that i (hope) is telling me that the program cannot connect to the folder. [code] Are there any known issues with VS 2010 that may cause this? Maybe something else in my code that could have an effect? This is in my form_load event though, so it is literally one of the first things that runs.

View 1 Replies

Unable To Connect To MS Access Which Is Placed In Another Systems Shared Folder?

Oct 30, 2009

I have web service which updates MS access database. Im using OleDB for Updating MS Access database

View 9 Replies

Find Users In Group?

Oct 20, 2010

I have some code that retrieves users from our domain:

Dim DirEnt As DirectoryEntry = New DirectoryEntry("LDAP://192.168.1.1:389/OU=Domain,DC=My Domain,DC=local")
Dim searchResults As New DirectorySearcher(DirEnt)

[code].....

View 2 Replies

.net - How To Check If User Has Full Control Permissions On A Shared Folder

Oct 25, 2011

I use the following code in order to check if certin user exists in the DACL:

Dim l_managemantObject As ManagementBaseObject() = CType(securityDescriptor.Properties("DACL").Value, ManagementBaseObject())
For Each mObject As ManagementBaseObject In l_managemantObject
l_name = CType(mObject.GetPropertyValue("Trustee"), ManagementBaseObject).Properties("Name").Value.ToString
If CType(mObject.GetPropertyValue("Trustee"), ManagementBaseObject).Properties("Domain").Value IsNot Nothing Then

[Code]...

View 1 Replies

Open File From Shared Folder Protected By Username And Password

Jul 7, 2009

I am building archiving system, I store the files on shared folder on windows server 2003, the shared folder protected by one user name and password ,on LAN I need vb.net windows forms to open file inside shared folder, how I could open the shared folder and in same time providing windows server 2003 with user name and password for the shared folder

View 4 Replies

[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

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

API Function To Find Username Of Shared Files Or Folders On Network In C# Or .net?

Nov 19, 2010

With the help of NetFileEnum or Openfiles.exe of system32, we can get the username who has opened the shared files. Is there any API function or any exe files in any programming language like c#, vb.net, visual c++ to find out who is the user to create, rename, or delete shared files or folders on the network?

View 1 Replies

Find Domain Users Name In Active Directory?

May 16, 2012

i am using following code to retive Domain Users from AD

but i am getting APPUser and IUSER in the give

how to avoide this type of user from the list i wantreal user names only

Dim pctx As New PrincipalContext(ContextType.Domain, "192.1.1.1", "myusername", "mypwd")
Dim grp As GroupPrincipal = GroupPrincipal.FindByIdentity(pctx,

[Code]....

View 5 Replies







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