Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run program in a password protected network directory 1

Status
Not open for further replies.

waytech2003

Programmer
Jul 14, 2003
316
US
I am working on a small Win98, ME network (5 computers)

Computer #1 has my program and database on it. I am sharing the directory with password protected read/write permissons.

All but one of the other computers are allowed to run the program and work with the data, over the network. The problem I have is the networked computer users have to know the directory PASSWORD before they can run it. I do not want them to have to type it in each time.

What I would like to do (if possible) is to make a startup program and place it on each network computer that is allowed to run my program. This startup program would then RUN the original program, on computer #1, and supply the passord to have access to the directory.

I have not worked with password protection on a network drives before.

Is this possible?

Wayne
 
this is not actually vb related...
i haven't use 98 machines for a while
i think it's just a matter of configuring ur server with the right account configuration/rights with the account
being used by the win98 machines...

e.g.

SERVER (NT and above)
1. create user
USERID: A
PASSWORD: B
2. give rights to the shared directory


CLIENT 98
during the login process
supply the userid and password you've created on ur SERVER

 
rmnaster,
There is no Server in this setup, just a Microsoft Workgroup. No configuration except in the sharing of a Directory/Folder on computer #1. This is to allow read/write access with password. When a network user tries to run a program in that shared folder they get a prompt for their password.

I know this is not VB related problem, I just thought that there might be an api call or something that would get me in with the right password supplied.
 
WAYTECH,

let us make it simpler...

have u tried using NET command
net use \\server\sharedfolder [drive] [password] /USER:[username]


you can put it on ur machines startup
or
you may use shell command on ur VB application...

hope this helps!




here is the rest of the paramenters

NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]
 
rmnaster, here is a star for you, your idea worked great.

Wayne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top