How to programmatically Provide Domain\Username and Password

R

Ron Weiner

I have a VB.Net Pocket PC application that needs to be able to move files it
generates to a \\Server\Share for additional processing. The devices
connect to our network via WiFi. I am currently using code like:

strFiles = Directory.GetFiles(strSearchPath, "*.wav")
j = 0
For Each strfile In strFiles
File.Copy(strfile, Path.Combine(strNewDirName,
Path.GetFileName(strfile)), True)
j += 1
txtChanged.Text = "Saving Wave File " & j
Next

Works Great! But :-(

The first time that the Pocket PC does this A dialog pops up looking for the
user to enter their Username and Password for access to the Share. Sure as
Day follows the night our users are complaining about having to errorlessly
tap in their network credentials. Is there any way I can alleviate their
plight and programmatically provide a valid set of credentials (with
appropriate permissions) before I start the file copy procedure?
 
R

Ron Weiner

Oy Veh!

I hadn't anticipated it would be this much of a project. Looks like I am
going to have to sharpen up my "C" to VB skills and attempt to PInvoke my
way through this as best I can. Thanks for the heads up.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top