Jump to content
Sign in to follow this  
Pouogf

Fileopen

Recommended Posts

Pouogf

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
DjDeep00

@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
Pouogf

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
DjDeep00

@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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.