Pouogf Posted June 18, 2008 Share Posted June 18, 2008 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 Link to comment Share on other sites More sharing options...
DjDeep00 Posted June 18, 2008 Share Posted June 18, 2008 @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(). Link to comment Share on other sites More sharing options...
Pouogf Posted June 18, 2008 Author Share Posted June 18, 2008 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 Link to comment Share on other sites More sharing options...
DjDeep00 Posted June 18, 2008 Share Posted June 18, 2008 @Pouogf...After using "DriveMapAdd" and "Fileopen". Once you are done with your script just call "DriveMapDel". Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now