Permission Denied On FileSystemObject When Create A Folder On Share Folder?
Sep 30, 2010I have the following code works fine in Windows 2000, after i moved to Windows Server 2003, it shows "Permission denied"...
View 1 RepliesI have the following code works fine in Windows 2000, after i moved to Windows Server 2003, it shows "Permission denied"...
View 1 RepliesI have the code to create a folder, does anyone have the code to share the folder and set the permission for everyone to have full control?
View 1 RepliesIs there a way to set admin permission on them user/AppData/Local/Temp folder?I need to set it so folders and subfolder cant be deleted, then turn it back on. Not doing anything shady... this is for personal use I make themes for BB phones, and there is a trick where you can set this permission, then export the theme, and it allows you to look at the code of the theme so you can make adjustments in how things work
View 2 RepliesI have created a folder in DotNetNuke programmatically on the root portal directory. I just want to assign permissions to it only one time, for example I want to make it read only for authenticated users. Any advice on how to accomplish this using C# or VB.NEt?
View 1 RepliesI need to create a folder on a remote machine (The machine name and UNC path are stored in an Access 2007 database. Once the folder is created, I need to share it out with Everyone:Full Control Permissions?
View 3 Repliesi need to access to a special folder and operate there, but i don't have permission to do this, how i can set permission to access to special folder and delete/create files?
View 18 RepliesI 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.
Now I upload update to a share folder inside the company network I have full
Permission access & everyone read onlyas any one out side the company can't use the program so there no password on the share folderbut I need now to protect the share folder as I have to use real IP on the database connection to allow the company branch's to access the database
I need code for the function filesystemobject which gets the text files from a folder when searched for.
View 1 RepliesMy.Computer.FileSystem.DeleteDirectory("folder location here", FileIO.DeleteDirectoryOption.DeleteAllContents)
I created a program which was deleting a particular directory for me. The program was compiled and working. Today I run the same program...did not do any system updates and now it won't delete my specified directory. I ran tests to make sure the directory is there when testing...I keep getting access/permission errors.
I rebooted system, ran my application...still gave me error. I turned off Windows Defender...still got error. If I manually delete the directory...no problem.
Is there a way to get system permission to delete the directory? I am being given an 'access denied' error...I do not have permission. I tried running my application as administrator...no good. - VB 2008 Express - VISTA OS
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].....
Retrieve Folder Permission in .net?
View 9 RepliesI installed the new one. I then imported an old project made using vb 2008 EE.I found that a few errors were reported.In the project I addressed some function from a dll called "rsource.dll". I used the following function call:Public Declare Function rs_init Lib "rsource.dll" Alias "init" () As Double.The other different thing is the projevt was developed on a 32 bit OS but since then I have upgraded to 64bit (if this makes any difference). he other thing is where is the debugger PAUSE button. has it been removed from vb 2010?Also when i run debug it seems to create the exe in the Build output target folder instead of the default bindebug folder why is this?
View 5 RepliesVisual Basic 2008/2010 - Save Page As, create a Folder, upload the folder to a specific ftp site I am working on this vb app that will goto a specific site, click on a button(i am still working on the button process) do a save page as, create a folder, save those files to a folder and then upload that folder to a ftp site.
[Code]...
I have the following directory structure in my asp.net webdirectory i want when any body access anypage inside my admin folder then it auto redirect to login page of admin folder until they login
View 1 RepliesI have a list of users with me and I need to find out programmatically which of the users present in the list have read/write permissions on a particular folder/file.
View 2 RepliesI have developed a VB.net 2008 application.My application is running successfully in x86 machine.I write some files in windows folder.When I test it on Windows 7 x64 machine with administrator log in there is no problem with this.If i run it with other user log in it gives me an error for access denied for files in Windows folder.
View 6 RepliesI'm in the mid of creating a program that will get the security permissions of a certain folder/s but some properties of the security permissions of a certain folder I can't query or get the values. I'm using VB.NET 2010This what I want to get in every permissionApply to:This folder and subfoldersThis folder, subfolders and filesSubfolder and files
View 2 RepliesAfter 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 RepliesI have discovered Environment.SpecialFolder.MyDocuments and My.Computer.Filesystem.SpecialFolder.MyDocuments
I know how to check if the folder exists, but it's awfully difficult to find a way to create a folder in a 'special folder'.
How do I programmatically create a folder in the users 'My Documents'?
I get an UnautorizedAccessException running this code:
string[] fileList = Directory.GetFiles(strDir, strExt);
The exception occurs in c:usersusernameappdata How can I check if I have access permission (to list and read files) ?
how you can allow vb.net to access a file/folder within a domain group and retrieves it permission setting to determine if the user have access or denied access to a certain folder?
View 2 RepliesI have some simple code that uses xcalcs.exe to set folder permission the script works fine but i am sure there is a smarter way to do the progress bar below is my code.
[Code]...
I have to do an application that share a folder and his sub folder.
This application have to run on Vista computer.
What's the best way for share a folder ?
I am using impersonate user to copy files form one location to other.
Only impersonate user will have write permission on the destination folder.
But i want to check before if that user has write permission before i copy file.
Currently i could able to get it using try catch exception, for that i need to perform the copy file process
how i must go about creating a folder say "pics" in my root and then upload a images from the file upload control in into that "pics" folder? If you don't want to give me all the code, i will be happy with a nice link also to show me how this will be done in VB.NET (C# is also ok).
View 2 Repliesmbedde resources writing to temp folder and they all works fine but i have the exe that requires the files in a folder example folder1 , my path isMy.Computer.FileSystem.SpecialDirectories.Temp for all the files im using but how can i addMy.Computer.FileSystem.SpecialDirectories.Temp.folder1to string so it creates the folder and i can write the two files to this one instead of regular temp ????
View 18 RepliesI have Client-Server environment and developed a project for Client-Server.I need to share a folder of my Server machine programmatically using VB.NET
View 2 RepliesI've made an app that first extracts an iso file to a folder. Say the folder is "ExtractedIsoDir", this folder is created in the same directory as the app.
Inside the iso are only folders, so you get a structure like "ExtractedIsoDirFolder1", "ExtractedIsoDirFolder2" etc.[code]...
I am using impersonate user to copy files form one location to other.Only impersonate user will have write permission on the destination folder.But i want to check before if that user has write permission before i copy file.Currently i could able to get it using try catch exception, for that i need to perform the copy file process.
View 7 Replies