Turnning Off/on A Shared Folder
I do not want the users to see or access the backup folder on the backup computer durning the day.
On the back computer: at 1 am turn on shared folder, then at 5am turn off shared folder.
Durning this time slot the PCs will backup their data.
Maybe VB-Script ?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Copy Files From Shared Folder To The Local C: Folder
This is Kiran,
I am working with Access 2002 ( XP ).
I have to copy required Excel files from the shared folder to the Local system C: drive for example.
Can any one help me that how can I do it with VBA in MS Access.
Thanks in advance.
Shared Folder Creation And User Creation And Accessing Shared Folder Using User Id
I want to create a shared folder called 'Accounts' as Accounts$ in windows 2000 pro, windows server 2000, windows XP,windows 2003 server?
I want to create a shared folder called 'Accounts' in windows 98 with password protection.
Also I want to create a user called 'AccUser' with password 'AccUser' in windows 2000 pro, windows server 2000, windows XP,windows 2003 server?
How can access the folder 'Accounts' using AccUser userid from VB 6 application?
Create New Folder Into A LAN Shared Folder
Hi, as the tittle says, I need to create a new folder from my PC into other LAN shared folder, I'm using a FileSystemObject to create the folder but this returns the "Access Denied" error # 70. How I can solve this !?
I would like shared a folder in VB?
(WInnt and win98)
How can i do?
I would like share a folder in VB source code.
How can i do?
Does anyone know how to unshare a path through API?
Thanks in advance
Log On To Shared Folder With Api?
I need to fetch a file from a shared folder via a vb app. The app is on win98, and the remote machine will be win98, but may be win2k in the future. I will use the FileSystemObject to search and find it, then I'll either be doing FileCopy to bring it local or just Open it remotely to read it, but I get an error because I haven't logged onto the shared folder--it is password protected. How do I use code (some api perhaps?) to log on in code to this folder?
How To Log Onto A Shared Folder
My problem is that I need to log onto a remote share so that my client apps can see my shared database. At present, I have to log onto the share through explorer. Is there a way to do this in vb? Has anyone done it or seen an article on it? If so, please point me in the right direction.
Thank you all
Connect To A Shared Folder
I would like to access network shares using something like the FileListBox. The FileListBox seems to work for network shares, but not if they are password protected. How can I allow the user to enter in the password to be able to display the folders contents?
Network Shared Folder
For one of my programs (i really have to many in progress!-darn, why do i volanteer), i have to create network shared folders, such as the "Net Share" command through a DOS promt does, the only thing is i dont want to drop loads of batch files to create a share. can anyone point me in the direction for this?
Shared Folder Sessions
In Windows XP, if you right click My Computer, and click manage - then "Shared Folders", and then Sessions - it shows if a user is connected to any of the shares on the local machine...
Is there an API to "grab" this collection of information from VB?
I need to be able to read this collection in my VB application, and I'm not sure if there is an API that does it, or what code I need to do it...
Any help is greatly appreciated!
Shared Folder... Permissions! ??
I am using JoshT code to share a folder on a computer with 2000 or xp.... and it works really good. Now.. the only thing is that this code gives permissions to everyone... and I need to give permissions only to a determined user.
So here is the code
'THIS CODE IS FOR NT/2000'5-3-2001 by JoshT Option ExplicitOption Base 0 Private Const STYPE_DISKTREE As Long = 0 'disk drivePrivate Const STYPE_PRINTQ As Long = 1 'printerPrivate Const STYPE_DEVICE As Long = 2Private Const STYPE_IPC As Long = 3 Private Type SHARE_INFO_2 shi2_netname As String 'LPWSTR shi2_type As Long 'DWORD shi2_remark As String 'LPWSTR shi2_permissions As Long 'DWORD shi2_max_uses As Long 'DWORD shi2_current_uses As Long 'DWORD shi2_path As String 'LPWSTR shi2_passwd As String 'LPWSTREnd Type 'NetShareAdd returns 0 if no error''lpwstrServerName As Any, --the computer to create the share on,' NULL for local computer,' otherwise must begin with "\"'ByVal dwordLevel As Long, -- specifies the type struct that contains the data' 2 for SHARE_INFO_2 Struct' 502 for SHARE_INFO_502 Struct'ByVal lpbyteBuf As Any, -- pointer to the struct who type was specified above'lpdwordParmErr As Long, -- if an error in the struct, the number of the struct's parameter' that caused the error (0 is no error) Private Declare Function NetShareAdd Lib "netapi32.dll" _ (lpwstrServerName As Byte, _ ByVal dwordLevel As Long, _ ByVal lpbyteBuf As Long, _ lpdwordParmErr As Long) As Long Private Sub TestIt() Dim si2 As SHARE_INFO_2 Dim retval As Long Dim parmerr As Long Dim compname() As Byte parmerr = 0 'compname = vbNullString compname() = "\COMPUTER7" & vbNullChar si2.shi2_netname = "Test2C" & vbNullChar 'the name of the share si2.shi2_type = STYPE_DISKTREE 'the share is on the disk si2.shi2_remark = "Testing Out NetShareAdd VB API" & vbNullChar 'the comment si2.shi2_permissions = 0 'this should be ignored si2.shi2_max_uses = -1 'unlimited connections si2.shi2_current_uses = 0 'I don't think this is applicable si2.shi2_path = "C:TEMP" & vbNullChar 'the path to the share si2.shi2_passwd = vbNullString 'NULL, the password 'this should be ignored retval = NetShareAdd(compname(0), 2, VarPtr(si2), parmerr) End Sub Private Sub Form_Load() TestItEnd Sub
I think I need to work around si2.shi2_permissions or si2.si2_permissions.... but I am lost.
PD. Have I told you how MSDN search sucks?
Making A DSN Through FTP Or Shared Web Folder
We are developing application which is based on Client server functionality.WE have a database which is built in MS Access that is reside on server side .
I want to create DSN through which I can access this data base remotely at client side .will it be possible through making a DSN through shared web folder(WAN)? or there are any other suggestion to solve this problem.
thxs & regds.
Hidden Shared Folder
I want to do somthing like ... a file which is shared on the LAN and when any client run that shared file then he will redirected to a hidden shared folder with $ on my pc and have read only permission.
Thanks for reading.
Hunaid ( munnobhai ).
Creating A Shared Folder In VB6
is there any way to create a network shared directory from VB?
i know how to create a "normal" directory, but how do i "share it" from VB?
WinNT 4 Shared Folder.
Can someone please tell me how can I access a file, any kind of file(data base), from a shared folder in NT4.
Thanks in advance!
Make A Shared Folder
I asked this question yesterday, but i didn't get a very clear answer...
How do i make a directory that is shared in a network??
Help With Windows Shared Folder
I wanted to connect to a windows shared folder on my local area network using the winsock control in vb6. Is there a possible way of doing that. I cant figure out what port to connect to. There are 8 ports listening on the machine i want to connect to. Thanks Matt
Set Permissions On A Shared Folder
Does anyone know any code that will set permissions on a shared folder. I would also need to add groups (i.e. Owner/creator to the permissions list).
If anyone could help it would be cool.
Create Shared Folder In VB?
I was wondwring if it was possible to created a share on a specified folder in VB 6.0. I have looked everywhere for some help but to no sucess.
EG. Directory is C:MY_DEMO
And I want to share it under the name "MY_DEMO", and let only authenticated people have full control.
Is this at all possible or does it have to be done manually?
How To Access To The Shared Folder?(please Help)
LEt say, i got 2 computer, A and B, both are LAN connected. How can i access the shared folded in computer B from computer A using the Visual basic? IS there any method that i can use?
For example, computer A with ip address is 192.168.2.1 while computer B is 192.168.2.2.
i want use visual basic to access computer B, c drive directory, and xxx shared folder in order to copy the file inside the shared folder to computer A. So... can someone teach me... please. Thank
Network Shared Folder
is it possible to write a program using vb6 - that scans for a shared folder. Of course we can use windows explorer to find a shared folder, but what i want is how to code that thing...
is it possible?
¤¤¤(¯`·¸•´¯)¤¤¤])•—› shuryuhen8 ‹—•([¤¤¤(¯`·¸•´¯)¤¤¤
Mÿ Çødë Rðútìñès Crâw£s Øñ ¥ðúr PÇs ß£ÓÖÐSTRÈÃM
Access Shared Folder
i am developing an application to execute a file from the shared folder on the remote PC. i want help regarding this.
Create Shared Folder
Can some one help me with setting up a shared folder on a workstation.
Like I want to create a folder on workstation A and then set its property to Shared and then when I go to workstation B I wnat to access it from Workstation B only.
Connect To Non-shared Folder
I know I have read somewhere that one can establish a connection (ado) even to a folder in a remote computer which is not shared, I have tried searching in the forum I cannot find it, I hope someone who knows how to do it will be kind enough to share it with me, a million thanks in advance....
How To Find A Shared Folder?
I need to get list of shared folder on a PC in the network.
In other words I know the PC name and I know that some its drives/folders are shared, but I don't know their names. Is there any way to find those names?
Is there any way to get the local location of a shared folder, that is the local location on the machine that is serving the folder. So if I looked at the shared folder \ServerFolder I could find that it is located at C:Folder on the server. Now that I think about it, if that is not possible then is there a way that if I put the local address in the comment section of the shared folder that I could get the comment information? Thanks in advance for any help!!
Setup Net Shared Folder With Installshield
Im using installshield devstudio 9 to create a setup program for my Access DB app. During setup, I need to ask the user if the installation is for the "Client/Server" Machine or a "Client Only" Machine.
If "CLIENT/SERVER" is selected, I need to create a shared folder ("C:DBNET") with access permissions for "EVERYONE", copy the Access file there, and setup a registry key with the path.
If "CLIENT ONLY" is selected, I need to open up a "browsefolder" dialog for the network, let the user browse the LAN for the Access file, and write a regkey with the UNC path.
All machines on which the program will be installed are either Win2k or WinXP
I can easily do all of this stuff in VB with API's, but I have no clue how to automate it in INSTALLSHIELD. I was hoping someone has some practical experience with installshield, and could help get me going in the right direction.
Shared Folder (acess Database)
Hallo Hi Everybody...
Is there a way to acess database from the client to the server without sharing the database folder. As we know sharing the folder very dangerous where it easily the hackers to come in the databases folder.
Here is my code to open database:
dim db as database
set db = workspaces(0).OpenDatabase("\serverMyFolderMyData.mdb")
Server : My ServerName
MyFolder : Where MyData.mdb reside (shared)
I cannot acess MyFolder if that folder not shared.
Setting Permissions On A Shared Folder.
Greetings to y'all! I'm havnig difficulty in this. I know how to set a folder as shared on a remote computer using NetShareAdd API call. But the problem now is how to set permissions to specific users. I wanted to remove the "Everyone" group and add specific users or groups (preferrably domain users and groups) and set permissions. Is ther any way this can be achieved?
Secure Shared Folder Or Drive
i have created a program to lock the system in vb but if there is a folder that is shared or a drive that is shared then on the network that perticular machine's folder or drive is accessable..
i want is when i run that program to lock the desktop the drives or the folders that are shared should also be locked and there should be no access to those folders or drives until the right password is entered for that desktoplock program..
can someone help me pls its urgent..
Accessing A File In A Shared Folder
How can I access a file in a password protected folder? Let's say the password's "abc123".
Basically, there's a file I need to read in a password protected folder that my system administrator insists cannot be shared globally.
Thanks in advance.
Trace Shared Folder User
i need some guide on how can i develop a simple application to trace users of shared folders in a pc workgroup.
this application will pop up when someone accessing the shared folder and come out with a list of pc information (the accessor) such IP address n computer name if possible.
i have the idea to develop this application for my pre-final project but really dun get d idea on where should i start...i need to do this in a very short period of time..
i can learn fast by refering to d source code...please help
Copy Files Onto Shared Folder
i have a partial Program that Watches a directory tree for a changed
file, once it Flagged changed i need somthing that scans a network
shared Folder for a duplicate name and then once found
then it copies it over ,, can anyone help me
Network Shared Folder Access
My computer has Windows 98 and it is member of a Workgroup (NOT a domain, there is no server for the network). OK. So I have a folder shared on my computer. I would like to write a program that can tel me what other computers on the network are currently logged on to my shared folder, at a certain moment.
Can anybody give me any idea on how to do this? Is this possible using some API calls?
I'm thinking of using this function but I don't know how:...
Private Declare Function NetConnectionEnum Lib "netapi32.dll" _
(ByVal servername As Long, _
ByVal qualifier As Long, _
ByVal level As Long, _
bufptr As Long, _
ByVal prefmaxlen As Long, _
entriesread As Long, _
totalentries As Long, _
resume_handle As Long) As Long
The problen is that i don't know how to use it. It has something to do with pointers and stuff that I'm not soo familiar with. One more thing: this function is intended to be used mainly under Win2000/NT. It is supported by Win98, but with some changes regarding the declaration and the asociated "Connection_Info_1" type...
In MSDN, the examples regarding the use of this function are for C++. Nothing for VB6 programmers... This is realy frustrating !!!
Anyone who can help me with this ?!? Please! Thanks!
Hope I've been helpful,
Get Physical Location Of Shared Folder
Can any one suggest me how could i get the exact physical location of a shared folder in network in visual basic.
physical location should also have drive details like
\sys01Ganeshfiles --- is shared folder path
\sys01D:UsersGaneshfiles ---- Required Physical Path
D:UsersGaneshfiles ---- Required Physical Path
"Ganesh" is the shared folder having all permissions in domain "sys01"
How Can I Get Shared Folder From A Network Computer
I want to access the shared drives of the computer available at the network, while i am available at the network...How can i do so...which API's are needed to do this and how...
Can anybody help me please
Copy A File From A Computer To A Shared Folder
I want to copy a file from a computer to a shared folder on the network like this : filecopy file.txt to "\192.168.0.120folder1" , but I need to use a username and password to bo able to access that folder .
Copy File From Local To Shared Folder
I have a vb6 apps that needs to copy file from local to shared folder. I thought I need to do something like:
Private Sub cmdImpersonate_Click()
NT4RunAsUser txtUser.Text, txtPsw.Text, txtDomain.Text, "", ""
FileCopy "c:inferno.log", "\XXX.XXX.XXX.XXXSEMC_archiveinferno.txt"
Public Function NT4RunAsUser(ByVal UserName As String, _
ByVal Password As String, _
ByVal DomainName As String, _
ByVal CommandLine As String, _
ByVal CurrentDirectory As String) As Long
Dim Result As Long
Dim hToken As Long
Dim si As STARTUPINFO
Dim pi As PROCESS_INFORMATION
Result = LogonUser(UserName, DomainName, Password, LOGON32_LOGON_INTERACTIVE, _
If Result = 0 Then
NT4RunAsUser = Err.LastDllError
' LogonUser will fail with 1314 error code, if the user account associated
' with the calling security context does not have
' "Act as part of the operating system" permission
MsgBox "LogonUser() failed with error " & Err.LastDllError, vbExclamation
MsgBox "Login OK"
NT4RunAsUser = 0
Public Sub Logoff()
Dim blnResult As Boolean
blnResult = RevertToSelf()
MsgBox "LogOff : " & blnResult
am i doing it correctly? Or I do not even need LogonUser() at the first place?
Crash Writing Files To Shared XP Folder
My executable is compiled on W2000, I am using the FileSystemObject to create and delete folders and files. Everything works fine on a W2000 box, and even on an XP box, except when that parent folder is shared. I have put On Error Resume Next statements, but the program still crashes out.
How To Access Shared Folder On Win 2000 Server
i want to open a shared network folder on Win 2000 Server. there is no domain, but all the systems are having same workgroup. i have restricted a folder on Server, and i want to give access to a particular machine on network via my program in VB.
Any idea will really be appreaciated.
Network Drive Shared Folder Password In VB
Is it possible to open a password-protected folder on the network drive through VB if I know the password?
If you know this, please let me in on it.
Thanks so much.