Sign in to follow this  
Followers 0
Pouogf

Fileopen

4 posts in this topic

Hello,

First sorry for my english .... :)

I try to use Fileopen with a file on network.

$file = Fileopen ( "\\PC\share\text.txt", 0" )

How can I give a username and password from network computer to the function?

Thanks !!!!

Pouogf

Share this post


Link to post
Share on other sites



@Pouogf...First you should map the network location to a drive using "DriveMapAdd" (See Help File). With this function you can enter in the username and password. Then you should have no problem using Fileopen().

Share this post


Link to post
Share on other sites

Thanks for your quick answer !!!!

Yes I have try DriveMapAdd, it's OK but I don't want the user see the mapp.

It's possible? :)

Pouogf

Share this post


Link to post
Share on other sites

@Pouogf...After using "DriveMapAdd" and "Fileopen". Once you are done with your script just call "DriveMapDel".

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0