473,383 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Creating a directory that can't be moved

I want to create a directory programmatically in vb express 2010. I know how to create the directory and subdirectories but I don't know how to make the directory "locked". Typically users in our server, move by mistake the directory into another directory and then we have to spend long hours looking for the file. I would like that the directory becomes locked and nobody can move it. Any ideas?
Jun 4 '13 #1
2 1196
pod
298 100+
This seems to be more a question for your IT department. The folders' permission must be limited with Network security as to give only certain rights to the users so they cannot move and/or delete the folders while giving your application the rights to create them.
Jun 11 '13 #2
Killer42
8,435 Expert 8TB
Appropriate network permissions are definitely the way to go.

However, it occurs to me that another (kind of ugly) workaround might be to have an application (on the server, I guess) keep a file open in that directory at all times.

If the network OS is anything like plain ol' single-PC Windows, it shouldn't let anyone delete, rename or move the directory.
Jul 20 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Arvind P Rangan | last post by:
Hi, I have tried creating folders through ASP.Net with Directory.Create(path) But it gives me error mscorlib Access to the path "C:\WINNT\system32" is denied. at...
9
by: Sheldon Cohen | last post by:
Hello, I am using c# and running a site that is on a shared host. The code in question is supposed to create a new directory that is coming out of a text box. It works fine on my computer, but...
2
by: Christoffer Sørensen | last post by:
Hi, I have a created a simple file upload asp.net web page which also creates directories on the fly using the following code: string fullpath = Server.MapPath(".\\..\\..\\" + path);...
3
by: James Coleman | last post by:
Hello, The following error is appearing when attempting to create a directory using the availale system.io methods: System.IO.DirectoryNotFoundException: Could not find a part of the path...
0
by: Dan Nash | last post by:
Hi peeps I'm using the IE controls TreeView to create a "Library" type function for all their Manuals, etc. Basically, the plan is to designate a directory on the server as the Library, and...
0
by: mountainbig | last post by:
I have the following tables with the following Coumns Product -- Partnumber, description, shortcodeid Shortcc -- shortcodeid module -- moduleid, shortcodeid Salesitem -- salesorderid,...
0
by: tocka20 | last post by:
Hi All, I was wondering if there is a way to create a folder on a seperate server to the one that the web application is using. I have had a look around for a solution but have been unable to...
0
rsrinivasan
by: rsrinivasan | last post by:
Hi all, I want to create directory with current timestamp by using ant build file. And im using ant 1.7. This is my ant build code. <target name="createDir"> <mkdir dir="myfolder"/>...
6
by: plomon | last post by:
whenever, i try to open a file for writing using fopen("xyz.txt", "w"), i am able to create the file only in default C:\ drive. i want to create a directory in the process of running the c code and...
2
by: briggs | last post by:
I have a file with below contents. the file is dynamically created with these values.It has two parts separated by _. Basically I need to create a main directory(a,b,c,d) first part and create the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.