How To Locate Shared Folder On My Computer
can you help me how to locate shared folder in my computer using vb6. my os is win98.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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 .
Accessing/running Activex Document From A Shared Folder In A Computer Server
I have created an activex document project and I deployed it to other computer (server) using the deployment wizard of VB6 to a shared folder(OTFORM). I did set the sharing & security of the OTFORM as 'full access'. I thought everything's fine. Because it runs well in my browser. But when I checked and used the other computer's browser, that's how my problem started. I always get a 'download dialogue box' asking me if I'm going to open it or save it. I wonder why it behaves like this on the other computer. Can anyone help me on this?
Thanks in advance.
Locate A File On Your Computer
i cant figure out what control you use to select a file on your computer its the same as the dir listbox but its to find files not folders . Is there such a control if so wheer is it?
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.
Is there a way I can allow my user to locate a folder to save in instead of an exact file? (my app creates the filename). Is it possible with the dialogue control cause I can only get it to locate a particular file. Cheers
How To Locate The System Folder?
Ok I have this line:
FileCopy App.Path & "RotateText.ocx", _"c:windowssystemRotateText.ocx"
The problem is that the system folder is not always there...
So I'd like to find the system folder and then to copy the file in.
Can anyone tell me gow to do this?
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?
Locate Program Files Folder Using VB
Hi, how can I programmatically locate the path for the "program files" folder? Is it always in "c:program files" or there is a api call for that?? thanks in advance.
Getting The Ip Of The Computer Printing On A Shared Printer
can someone please help me in this part of my program? how can i make a snippet that can get the ip (for me to display in the program) that is currently printing on a specified shared printer (any printer whether local or via tcp/ip port or any port).
Logging In To Shared Drive On Another Computer
What i want to do is logon to the shared drive of another computer from inside my vb6 program.
The problem is before some of the stuff in my program can run it needs to be able to access a shared drive on another computer. Windows tends to drop the connection after a while so I want my program to be able to log in to the shared drive supplying the username and password so my program can reach the drive.
for example I want ot get to this folder using the username and password below
Does anyone know of an easy way to do this.
HOW TO MAKE MY DATABASE SHARED WITH MORE THAN ONE COMPUTER
I want to understand how can i share my Database designed using
MS Access and connected to the interface created by Visual basic
I created .exe file and make a package of that, project. I
installed in another computer and worked fine. But when i wanted
to share that db to another computer an error message appear. So
i dont know how i can share that database. Please am asking for
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 !?
List The Directory Include The Network Computer Name And Shared Name.
i got this code from the vb-world, which able to list the directory of your harddisk. It does show the directories in your computer, network neighbourhood, network domain name, but doesn't list the network computer and share name under the network computer name.
anyone know how to enable it to show the list of network computer name and their sharename. pls let me know.
thks in advance.
here's the code
Private Const BIF_RETURNONLYFSDIRS = 1
Private Const BIF_DONTGOBELOWDOMAIN = 2
Private Const MAX_PATH = 260
Private Declare Function SHBrowseForFolder Lib _
"shell32" (lpbi As BrowseInfo) As Long
Private Declare Function SHGetPathFromIDList Lib _
"shell32" (ByVal pidList As Long, ByVal lpBuffer _
As String) As Long
Private Declare Function lstrcat Lib "kernel32" _
Alias "lstrcatA" (ByVal lpString1 As String, ByVal _
lpString2 As String) As Long
Private Type BrowseInfo
hWndOwner As Long
pIDLRoot As Long
pszDisplayName As Long
lpszTitle As Long
ulFlags As Long
lpfnCallback As Long
lParam As Long
iImage As Long
Private Sub Command1_Click()
Dim lpIDList As Long 'Declare Varibles
Dim sBuffer As String
Dim szTitle As String
Dim tBrowseInfo As BrowseInfo
szTitle = "Click on a directory"
.hWndOwner = Me.hWnd 'Owner Form
.lpszTitle = lstrcat(szTitle, "")
.ulFlags = BIF_RETURNONLYFSDIRS + BIF_DONTGOBELOWDOMAIN
lpIDList = SHBrowseForFolder(tBrowseInfo)
If (lpIDList) Then
sBuffer = Space(MAX_PATH)
SHGetPathFromIDList lpIDList, sBuffer
sBuffer = Left(sBuffer, InStr(sBuffer, vbNullChar) - 1)
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!
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 ?
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..