08-14-2009 07:19 AM
Hallo,
I was searching in the help and internet but no success.
How can I map a server's directory with labWindows/CVI?
for example I wanto to map M: "\\192.168.1.30\pictures"
Thank you very much
Max
08-14-2009 07:58 AM
08-14-2009 08:21 AM
Thank you very much.
Another question: I have to include also some library or it's allready included for those functions?
08-14-2009 09:51 AM
As Martin says, you can use the WNetAddConnection2() function if you have the Windows SDK installed. I have attached an example CVI project that does that.
You need to #include windows.h and Winnetwk.h in your source file.
You need to add mpr.lib to your project file.
If you don't have the Windows SDK installed, you need to reinstall CVI, adding the option for SDK.
There's more help info at MSDN here: http://msdn.microsoft.com/en-us/library/aa385413(VS.85).aspx
Look at the attached example and let me know if you have more questions.
08-14-2009 11:32 AM
thank you very much
Max