473,513 Members | 2,559 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Lock and Unlock Folders/Files thro' VB

2 New Member
How to Lock and Unlock Folders/Files through VB or how to open a folder which is password protected?
Apr 28 '07 #1
4 3077
Killer42
8,435 Recognized Expert Expert
How to Lock and Unlock Folders/Files through VB or how to open a folder which is password protected?
When you say "Lock and Unlock" are you referring to the Read-only attribute? If so, the FileSystemObject (requires a reference to "Microsoft Scripting Runtime" to be added to your project) will probably allow you to do it pretty easily.

Don't know about the password-protected folder. How do you password-protect a folder?
May 1 '07 #2
Robbie
180 New Member
Maybe he is referring to ZIP files which Windows XP wants to make newcomers believe is just a "compressed folder"? ;)
(Gotta hate it for at least that...)

I have a VB project I downloaded form somewhere but I have absolutely no idea where I got it from, so for now I'll be hosting it on my little server (please bear in mind I have a crap connection - if it doesn't work, try a little later):
Archive Explorer
However, on my system at least, it seems to 'lock' / get stuck in some infinite loop somewhere and never start responding again when it tries to extract a password-protected file (and I give it the password), but I don't remember anyone else complain about that so maybe it's just with me. T_T

What a waste of typing if you're not talking about zip files, haha....
May 1 '07 #3
Killer42
8,435 Recognized Expert Expert
Maybe he is referring to ZIP files which Windows XP wants to make newcomers believe is just a "compressed folder"? ;)
Good point, that might be it.

(Gotta hate it for at least that...)
Actually, I've always rather liked the addition of "compressed folder" support. Not that I ever use it, since I prefer WinZip. But it's great to know that everyone can handle zip files.

The only real problem I have with it is the inability to easily toggle the option to search within archives. Most of the time I don't want to search them, and I have some big zip files hanging around. :(
May 1 '07 #4
Robbie
180 New Member
Good point, that might be it.
Actually, I've always rather liked the addition of "compressed folder" support. Not that I ever use it, since I prefer WinZip. But it's great to know that everyone can handle zip files.

The only real problem I have with it is the inability to easily toggle the option to search within archives. Most of the time I don't want to search them, and I have some big zip files hanging around. :(
Same here about wishing you could disable searching within ZIPs. But the support for browsing around within ZIP files with XP seems more like a last-minute extra add-on to me.

There are things which can be done with files in ZIPs (and practically every other archive I can think of) using dedicated archive programs, but not in XP's explorer which I wouldn't have thought would be too hard for MS to add. Such common things as renaming, or drag/drop from archive to program.

Out of interest I just right-clicked and chose Extract All... and the text is not even shown properly, being cut off! (Screenshot)
I'll be sticking to 7-Zip. ;)
Expand|Select|Wrap|Line Numbers
  1. </random_rant>
May 1 '07 #5

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

Similar topics

0
4501
by: John | last post by:
I've got multiple threads and processes that write to same file. Before writing all threads / processes first lock part of file and then write to file. If one thread / process locks file, another...
14
3803
by: Gary Nelson | last post by:
Anyone have any idea why this code does not work? FileOpen(1, "c:\JUNK\MYTEST.TXT", OpenMode.Binary, OpenAccess.ReadWrite, OpenShare.Shared) Dim X As Integer For X = 1 To 26 FilePut(1, Chr(X +...
2
15762
by: adri4n | last post by:
as wat ive mentioned in the title.. im would like to know whether the a particular record/table is being locked in my program. some of the methods which i would like to develop are as below: ...
5
704
by: pgdown | last post by:
Hi, I have several processes accessing files from one folder, but only one process should ever access each file. Once one process has the file, no other process should be allowed to access it,...
2
20633
by: rmgalante | last post by:
I am using the standard asp.net membership provider. I have users who forget their password. They attempt to login 5 times and they get locked out. The membership configuration in web.config...
7
1839
dlite922
by: dlite922 | last post by:
I need to do some sort of Locking mechanism at interface level, instead of DB Level. I know how MySQL table locking works, but that won't work in my scenerio. Requirements: When someone is...
45
4349
by: Chris Forone | last post by:
hello group, is there a chance for other functions to get the lock if i have following loop: while (running) { Lock local(mutex); }
8
4091
by: Clive Dixon | last post by:
Are there any issues I should be worried about when using C# 2.0 iterators in conjunction with lock, i.e. public IEnumerator GetEnumerator() { lock (lockObject) { foreach (object obj in...
6
5366
by: DaveRook | last post by:
Hi I have some code from a friend and I don't understand why they have used the application lock feature! I understand this produces a random quote, but can some one explain to me what happens...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7537
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7099
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3233
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1594
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.