Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Lock A Folder With Visual Basic


Is it possible to lock a folder using Visual Basic?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Select A Folder In Visual Basic
To select a file I use CommonDialog.

But what i use for select a folder?

Search For Folder Using Visual Basic
Hey all.. how to search for a folder in a computer using visual basic commands?

Get Folder List In PocketPc Using Visual Basic
Hi,
  I have a problem working in VB with PocketPC. The problem is I want to know the list of folders present in the PocketPC. I am using RAPI funtion to get the list of files and to write,Read the Files. Is there any function persent in RAPI to get the list of folders, creating a folder and deleteing a folder. If not is there any alternative to get what i need? Please help me by sovling this issue.

Thanks,
Prakash

How To Get Folder List From RAPI Using Visual Basic
Hi,
  I have a problem working in VB with PocketPC. The problem is I want to know the list of folders present in the PocketPC. I am using RAPI funtion to get the list of files and to write,Read the Files. Is there any function persent in RAPI to get the list of folders, creating a folder and deleteing a folder. If not is there any alternative to get what i need? Please help me by sovling this issue.

Thanks,
Prakash

Visual Basic And Searching An Outlook Folder
Hi Everbody, been a while since my last cry for help so here it goes, I am having problems trying to search through a list of Email Items in VB6, I think the problem is to do with the Date Format, but I have tried various Syntax's including #'s, single quotes etc but I'm getting no where. Can anybody tell me how to use the Find command or Restrict command to get the first record which matches the SenderName and ReceivedTime, this is what I have got so far but just keeps reporting the error ;

Run-Time Error -2147352567

Type mismatch or the value "975116649" in the condition is not valid.


Set EItems = EFolder.Items.Find("[SenderName] = '" _
& ListViewEmails.SelectedItem.SubItems(1) & "' AND [ReceivedTime] = #" _
& ListViewEmails.SelectedItem.SubItems(3) & "#")


ListView values are :

ListViewEmails.SelectedItem.SubItems(1) = "Smith, Bob"
ListViewEmails.SelectedItem.SubItems(2) = "25/01/02 14:56:23"

Please help . . .


Work is necessary for man. Man invented the alarm clock.

Visual Basic Folder Rename Under WinNT
I want to accomplish the following under WinNt4.0 using VB5.0

if exist c:GPD5 then
begin
rename c:malo GPD2
rename c:GPD5 malo

call c:malo<database application X>
make current dir c:malo

goto end
end;

if exist c:GPD2 then
begin
rename c:malo GPD5
rename c:GPD2 malo

call c:malo<database application X>
make current dir c:malo

goto end
end;

call c:malo<database application>

end:
echo you are about to launch application X


This program when written in VB5.0 works under window95 and 98, However, a run time error occurs when
this same program is used under WinNt 4.0. Why? and if possible can you help me. Please send advise to
chirp72@yahoo.com.

Thank you.

Changing Default Path For Visual Basic Folder
Hi,

When yo install Vb, it set C:Program FilesMicrosoft Visual StudioVB98 as defalt folder.

How can i change this setting.


Thanks

Create Folder In Windows Through Visual Basic M.S. Access
I have code that will save data from a Microsoft Access form to an excel file on a U drive. I wanted to make a folder for all of these files but wonder if there was a way to have Visual Basic create a folder if the folder doesn't already exist and if it does exist then do nothing. Is this a possibility?

Here's my code to save the excel file.

Code:

Dim stDocName As String
Dim Location As String
Location = "U:Surplus_" & VendorCode & "_" & Format(Now, "mmm-dd-yyyy") & ".xls"
stDocName = "qrySURPLUS"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qrySURPLUS", Location

How To Get The Currently Selected Item In An Notes Folder From Visual Basic
I am writing code in VB where I have to drag a lotus note's mail and put it in tree control. But I am not getting the selected mail in my collection.

So anyone please tell me how to get the selected lotus notes mail in the collection.

&"Can't Lock File&" Error For Database Using Visual Basic
Ok, I have searched this board for a while now trying to find the answer, and it seems that no one has really answered the problem at hand. I am running a vb6.0 app on serveral windows 2000 boxes that all must connect to an access database. i have tested the program here on my local machine (as a single user on the database) and the program runs fine, not a bug in site.

I installed the same program on another machine here on the network, and it worked fine as well. We both opened the program at the same time, modified the database at the same time, and everything, and still everything works fine. these tests were run on windows xp boxes.

The solution I need is this. I am delivering this software to another company where like i said, they are using 2000 boxes. when one user tries to open the program, they get the can't lock file error. they now have full control of the database (the it guys over there were big on security and had the security controls down to basically read-only). yet still, it doesn't work. the catch is this, the it guys who have administrative privileges, as well as the supervisor, run the program with no gliches.

Does anyone have an answer to any of this. Is it because of the Windows xp deal? is it because of the visual basic way of dealing with the database (I am dao for this one, i could change to ado if necessary), or is it because the users don't have admin privileges (as a side note, i do not have admin privileges on the network here at work, and in fact the database was stored in a very secured folder on the network when it was running here)

any help would be great

thanx

How To Copy And Paste Files In Temporary Folder Using Visual Basic
I need to copy and paste files in temporary folder using VB coding..and how to clear the temporary folder using VB as well..

How To Open A Folder Path In The Common Dialog Box In Visual Basic 6
I'm trying to open a path of a folder in the common dialog box. and it wants me to open a file instead?

here is my code when I click on the button it wants me to open a file first then i click on a text file..which i don't want it..

for example I want my Result to be: C: emp estpath ==> now it gave me C: emp estpath after I select
a file in the testpath folder and I don't want () at the end of (testpath)

Code:Private Sub cmdOpenFolderPath_Click()
    
    Dim MyPos As Integer
    Dim newPathString As String
    Dim origPath As String
    
    On Error GoTo ErrorTrap ' Set the error trap
    
    CommonDialog1.Filter = "Text Files *.txt/*.txt/All Files *.*/*.*" 'dialog box
    
    CommonDialog1.ShowOpen ' file display pattern
    
    Open CommonDialog1.FileName For Input As #1 ' Open a file name in the dialog box
    Caption = CommonDialog1.FileName
    ADSDBPath = CommonDialog1.FileName
    MyPos = InStrRev(origPath, "", Len(origPath))
    newADSDBString = Left(origPath, MyPos)
  
    origPath = newPathString ' Assign a new database
           
    lblNewPath.Caption = origPath ' Assign a selected database path
    
        
ErrorTrap:
    ErrMsg
End Sub

AbbydonKrafts - Moved from Forum News to VB & WinAPI. Also added code tags.



Edited by - AbbydonKrafts on 1/11/2007 8:09:19 PM

File Lock Or Folder Lock
Is there any api i can use to lock files or folder, preventing them to be accessible from the user???

i tried to open the file without any sharing, it works alright, but it would be a little slow if i want to lock a folder with many many files in it...

Folder Lock
hi there
iam working on an encryption program and i want to include an option to lock folders i.e. once a folder is locked it wont be accessible until its unlocked.
 
is there any way to lock folders using VB. so that folder wont be seen in explorer.
 
pls help
 

Word And Visual Basic [ How Can I Get The Save As Window Through Visual Basic? ]
Hi, I made a small program in visual basic that with the use of

Dim oWord as new word.application
Dim oDoc as new word.document

fills a document with some data from the visual basic.
I want when those data are loaded in word the save or save as window to appear.
The command oDoc.saveAs saves the document without even asking for a filename.

What Can I do?

How Do I Run A Program I Made In Visual Basic On A Computer Without Visual Basic?
I created a program in Visual Basic and I was curious at what I needed to do to be able to install or use this program on a computer without Visual Basic. Any help would be great! Thanks in advance.

Extracting Visual Basic Source Code From Visual Basic EXE
hi everyone,

Well actually the problem in my case is that i had mad an EXE in VB6 around a week ago and had stored the EXE and th source code in two diferent folders. By mistake somebody ha deleted the source code folder. I wanted to make some changes i the EXE code and Now i have only the EXE folder to deal with.

Is there any method by which i can extract the Visual Basic cod from the VB EXE. Is there any application or software which ca help me in this? Do give me the hyperlink for downloading th EXE for the extraction if possible.

Please let me know at the earliest.

Thanks in advance.

Ankit

Lock Folder/drive ?
would like to lock a folder or drive with a click...
even if there is data being copied to it...!!!

can this be done , any ideas ?

Lock File Or Folder
Hello,
This is my first post to this excellent forum and I'd like to start by asking a question, if I may.

I know a function called "LockFile" exists in the Windows API, but I do not know how to use it to lock a specific file or folder from access. Could anyone please tell me how to do so?

Any help would be greatly appreciated.

Folder Lock Through Coding
HELLO.
i m using vb 6.0
i want a code by which i can create a folder and lock that folder so that no one can open / modify / delete that folder.
so is there any vb-code for it ?

Password-Lock Folder
hey..how can i Password-Lock Folders..so when some1 tries to go into them..itl popup asking for a password.? can i code a little program to run hidden in the background?

How To Lock Folder Through VB 6.0 Code
Hi,

I have one problem, please any one can help me for that. Through Visual Basic 6.0, can i lock any folder.

i.e. Not Renamed,not deleted, or not opened by anyone.


I have urgency, pl. reply me as soon as possible.


Regards,

Nainesh Tailor.

VB Program To Lock A Folder
Hi,

I was wandering if anybody knew of any VB programs that would lock an Windows XP folder using a Password. I cant find anything that will do this and was just wandering if there was a VB solution?

Thanks

I Want Learn About Lock File And Folder
i want know method or source code to lock file or folder

Lock And Unlock Folder ..(quite Urgent)..
Hi friends,

In my visulabasic project , i need to lock and unlock one folder , how to do this one??
any idea??

advance thanks for your help..

waiting for your valuable information..

with regards,
kar

Dir Function Puts A Lock On The Folder
one more minor problem i was facing


when ever i use the dir function to get the file present in the said location . It locks the folder and the lock does not free till the application ends . now in my application there is a point where one can go and change the folder so in that place my application breaks

is there a way to circumvent that problem

i mean if the code says


dim dinesh as string

dinesh = dir ("c:dineshnegi estpanaceahelp.txt")

then after this command is executed

subdirectory panacea get locked by the application and then stays that way until the application ends

is there a way to unlock the lock on the folder

one way is to do away witht he use of dir fucntion all together
and use filesystem object

but i was looking for something so that i can still continue using the dir function


any ideas abt that



dineshnegi

Help On How To Lock And Hide Folder, And Still Access Files Inside
hello everybody,

please help me
im not that good in programming the API and the registry

please help me, in coding on how to lock and hide
specified folders and still access the files inside

Is Visual Basic Script As Ubset Of Visual Basic
Hello

Is visual basic script a subset of Visual Basic code?

Visual Basic Items Removed From Visual Basic.NET
A while ago (maybe up to a year) I had found a web page (probably a Microsoft MVP's home age) that had a list of about 100 things that were removed from Visual Basic in the transition to Visual Basic.NET. As it is, I would like to look at that again, but I can't seem to find it on my computer. Does anyone remember this page and/or have a copy of the link or the file that was on it. It has particular things like Debug.Print is no longer valid and MsgBox function is not supported. I've look on Microsoft's website and found a great deal of information about implementation difference, but I can't seem to locate this particular piece. If anyone could help I would appreciate it very much.

Thanks in Advnance

Nick August

Detect Num Lock Caps Lock And Scroll Lock <solved>
i am creating a small password username program and the password is case sensitive and i want it to be but i want to warn the user if the caps lock or num lock or scroll lock is on, though i do not know to detect if these are on , anyone know thanks!.

Best Reguards


Dave Barr

Edited by - crazyoldman on 1/11/2006 11:38:51 AM

Num Lock, Scroll Lock & Caps Lock QUestion
How can i activate the Num Lock, Scroll Lock & Caps Lock using vb?

Fwd: How To Disable Basic Functionality Of Back Space & Delete Key In Visual Basic
<html><div style='background-color:'><DIV>
<P><BR><BR><!-- END YOUR MAIL MESSAGE BEFORE THIS LINE--><BR></P></DIV>
<P><A href="http://www.flamingtext.com/hmail.html" target=_top><IMG alt="Image by FlamingText.com" src="http://hmail.flamingtext.com/hmail/2003/07/02/ flamingtext_com_1057144048_20660.gif" border=0></A> <BR><BR>
<DIV>Try to use API's i am sure u will get ur problem</DIV></P>>Hi all
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>> can any one tell how to disable back space & delete keys in perticular
<DIV></DIV>>text box.
<DIV></DIV>>
<DIV></DIV>>thanks & regards,
<DIV></DIV>>Sridhar cs
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>*Archives: http://www.OpenITx.com/g/visualbasic-l.asp
<DIV></DIV>>*Manage Subscriptions: http://My.ITtoolbox.com
<DIV></DIV>>*Leave Group: mailto:leave-visualbasic-l@openitx.com
<DIV></DIV>>*Questions: mailto: email@removed
<DIV></DIV>>*Terms of Use: http://www.ittoolbox.com/help/termsofuse.htm
<DIV></DIV>>*Copyright (c) ITtoolbox and message author. No redistribution.
<DIV></DIV>>
<DIV></DIV></div><br clear=all><hr>Add photos to your messages with <a href="http://g.msn.com/8HMTEN/2749??PS=">MSN 8. </a> Get 2 months FREE*.</html>

How To Disable Basic Functionality Of Back Space & Delete Key In Visual Basic
Hi all



can any one tell how to disable back space & delete keys in perticular
text box.

thanks & regards,
Sridhar cs

Code Change From Visual Basic.net - Visual Studio 2005
I am working on a tuturial that i have for Visual basic.net ( for now )

I am working with Visual Studio 2005.

I have been working on a code to change the text color by the name put into
the text box.

Visual Basic .Net code.
Label2.ForeColor = Color.FromName(TextBox1.Text)

i get the error
Name 'Color' is not declared.

I was wondering if someone can show me how things would be in Visual Studio.

thank you

Difference Between Visual Basic And Visual Basic.net
visual basic and visual basic.net?
i am very new to programming, and i was wondering if someone could explain the difference between visual basic and visual basic.net. i Know this may be a silly question to ask, but if i dont i will never find out.
i am designing a system for a chinese restaurant, hopefully i hope create it in Visual basic.
if anyone can help, i would be grateful.

What Are Advantages Of Visual Basic .net Over Visual Basic 6.0?
I am thinking of installing Visual Basic.net (standard version) in place of Visual Basic 6.0. I dont know what are the disadvantages of it and I am hesitating to do that. I thought that I should ask the forum before making this decisions.

Would someone help me to know the followings.
1. If I install VB.net, and if I do programming in VB.net, will I be able to run it in Visual Basic 6.0?

2. Can I do everything that I do in Visual Basic 6 in Visual Basic .net?

3. Are there things that I can do in Visual Basic . net which can not be done in Visual Basic 6.0?

4. Would you recommend Visual Basic.net in place of Visual Basic 6.0?

Thanks in advance.

[Solved]Visual Basic &amp; Visual Basic.net
Wat is the difference between Visual Basic & Visual Basic.net?

I just dont understand.....are they 2 different programming languages? Are they related to each other?
Do they both need the Ms Visual Basic software to develop?.....
Which is more powerful & which is better for beginners?
What is there in Vb.net thats not there in VB....?
pls help me out with this...

Upgrading From Visual Basic 3 To Visual Basic 6
Has anyone upgrade a project from VB3 to VB6?

What Is The Different Between Visual Basic And Visual Basic Access?
hey!

actually i'm going to do a database to track student attendance, where the student need to scan their student ID card.

which software is suitable for me? Visual basic or Visual basic access?

actually what is the different between these two?

can anyone explain to me?

Upgrading From Visual Basic 3 To Visual Basic 6
<html><div style='background-color:'><DIV>
<P><BR><BR></P>
<DIV>
<DIV></DIV>
<P>Is it possible to upgrade a project from VB 3 to VB 6?</P></DIV>
<P>Avi Manor<BR><BR></P><BR><BR><BR></DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http: //explorer.msn.com</a><br></html>

Visual Basic 6 To Visual Basic 5 Conversion
What has to be done to the files in a VB6 project to get it to run on VB5CCE?

DLL Visual Basic 6 On EMbedded Visual Basic 3.0
Hello Friends, as I can create a DLL for embedded. or as I can have something similar to FileListBox of VB6, I want to recover the archives that are in a directory in individual.




Hola Amigos, como puedo crear una DLL para embedded.

o bien como puedo tener algo parecido a FileListBox de VB6, quiero recuperar los archivos que se encuentran en un directorio en particular.

Basic Question On Visual Basic (counting Rows)
Hi friends,
i'm a novice of VBA. I'm trying to write a sub that needs to count the rows of my sheet.
I't seeems there's no way to understand automatically how many rows/columns are used in a sheet.

Can you help me, plzs?

URGENT Help Required Basic Visual Basic Code
How do I bring up records from a list box??? this is what I have so far of my programming...


Option Explicit
Dim FileName As String

Private Sub cmdAddFileWrite_Click()
Dim Name As String
Dim Age As String
Dim DOB As String


Name = txtName.Text
DOB = txtDOB.Text
Age = txtAge.Text

Open FileName For Append As #1
Write #1, Name, DOB, Age
Close #1
txtName.Text = ""
txtDOB.Text = ""
txtAge.Text = ""
txtName.SetFocus
End Sub

Private Sub cmdDisplay_Click()
Dim DataToDisplay As String
Dim Name As String
Dim Age As String
Dim DOB As String

Open FileName For Input As #1
lstdisplay.Clear
Do While Not EOF(1)
Input #1, Name, DOB, Age
lstdisplay.AddItem Name

Loop
Close #1
End Sub

Private Sub Form_Load()
FileName = App.Path & "AddPlayer.txt"
End Sub


That is wha I have so far I mean I have a list box there where it displays the data that has been inputted, now how do I get that to link up wit a record something to do with a module?

Basic Question About Excel Macros And Visual Basic
I have a macro in Excel that takes some input on data ranges and produces charts based on the input. I want to place those charts (a number of them are generated) at a certain point in my excel worksheet. I know I can nudge it over by a certain amount but I can never tell where Excel will place them so I would like to just say "hey chart, sit here". Being able to do that in relation to cells would be great. Also, I would like to know if there is any way to resize the chart without using the percent. Once again, in realtion to cells would be great. Thanks for your help.

Apply Windows Visual Themes From Visual Basic?
I am moderately new a visual basic - i know quit a bit - but not as much as some people - was just wondering - is it possible to make a visual basic program that applies a windows visual style - if so - how?

Data Type Conversion From Visual C++ To Visual Basic
I'm trying to convert some code from Visual C++ to Visual Basic. There are some types, however, that I cannot seem to figure out what they should be. The C++ types are dpecifically WORD and DWORD. What should they be in Visual Basic? I thought DWORD is a Long, but I have no idea what a WORD would be. Specifically, I'm determining the types from the BITMAPINFOHEADER structure.

Microsoft Visual Studio 6/Visual Basic 6 Sp6 RELEASED!!!!
Microsoft released Service Pack 6 for Visual Studio 6, download the latest(and final) service pack if you have VS6/VB6 installed.

Official Page
Official Page of sp6

List of Fixes
See the fixes from sp4 and sp5

Direct Download
Click here to download it (About 62mb)



Download it, it has many fixes included!



As BrianS told me: VB6 SP6, its only 26mb and VB Runtimes sp6 its only 1.02mb


Enjoy the new service pack! It is the LAST!!!!!

Copyright © 2005-08 www.BigResource.com, All rights reserved