|
-
May 2nd, 2007, 02:20 AM
#1
Thread Starter
Lively Member
file permissions
hi,
i want to change fiile's pemissions how can i do it with vb6?
and how can i get the windows directoy?
how can i run some exe fom the code?
thanks
omer
-
May 2nd, 2007, 02:47 AM
#2
Re: file permissions
What do you mean by File Permissions, exactly?
-
May 2nd, 2007, 03:18 AM
#3
Thread Starter
Lively Member
Re: file permissions
there is permission called Everyone and i need to change the file permission to it
that permission allows to everyone to watch that file and use it
and how can i change the inheritance of the file with the code?
omer
-
May 2nd, 2007, 06:10 AM
#4
Re: file permissions
 Originally Posted by omerg84
and how can i get the windows directoy?
vb Code:
Private Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" _
(ByVal lpBuffer As String, ByVal nSize As Long) As Long
Private WinDir As String
Private Sub GetWinDir()
On Error Resume Next
Dim sBuffer As String
Dim lSize As Long
Dim Rs As Recordset
sBuffer = Space$(255)
lSize = Len(sBuffer)
Call GetWindowsDirectory(sBuffer, lSize)
If lSize > 0 Then
WinDir = Left$(sBuffer, lSize - 1)
Else
WinDir = vbNullString
End If
End Sub
As far as changing permissions goes, will all the people running your program be administrators on their machines?
-
May 2nd, 2007, 06:33 AM
#5
Thread Starter
Lively Member
Re: file permissions
yes everyone admins,who can i change the permissions with code?
-
May 3rd, 2007, 05:15 AM
#6
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|