| | |
How to open a File from password protected shared server through programming
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2008
Posts: 21
Reputation:
Solved Threads: 0
I tried to write a program that can open files from the server. But the shared folder in the Win2003 server is password protected. i tried the following code
And it is working fine. But for big files and pdf files it opening and it is showing the File not found error. I know the problem is caused because the network drive deleting after opening the file. I tried to increase the delay to deletion of network drive. and somewhat success. except pdf file other files are working fine. PDF files still showing path not found after load all file also. I think it communicating the path after opening also. But some security reason I can't keep the network folder map.
So I wish to open the file in some otherway that can't bring any further problem.
Please help me in this matter. this is urgent.
Thanks
VB.NET Syntax (Toggle Plain Text)
System.Diagnostics.Process.Start("net.exe", "use K: \\Server\URI\path\here /USER:username password" ) Dim p = New System.Diagnostics.Process p.Start("k:\" & Filename) System.Diagnostics.Process.Start("net.exe", "use /delete K:" )
And it is working fine. But for big files and pdf files it opening and it is showing the File not found error. I know the problem is caused because the network drive deleting after opening the file. I tried to increase the delay to deletion of network drive. and somewhat success. except pdf file other files are working fine. PDF files still showing path not found after load all file also. I think it communicating the path after opening also. But some security reason I can't keep the network folder map.
So I wish to open the file in some otherway that can't bring any further problem.
Please help me in this matter. this is urgent.
Thanks
![]() |
Similar Threads
- Password protected CD (Windows NT / 2000 / XP)
- how to open a file from server sytem using java (Java)
- Open file Dialog in asp.net (ASP.NET)
- pls help how to open file in a application using jsp (JSP)
- Connecting password protected MS Access database from C# (C#)
- Help ==> DataReprot + Password Protected Database (Urgent) (Visual Basic 4 / 5 / 6)
- Password Protected (Geeks' Lounge)
Other Threads in the VB.NET Forum
- Previous Thread: VST programming in Visual Basic
- Next Thread: developing web application using vb.net
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2005 2008 access add arithmetic array assignment basic binary bing box button buttons center check code combobox component connectionstring convert cpu crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist editvb.net excel file-dialog firewall folder ftp google hardcopy image images isnumericfuntioncall login math memory mobile ms mssqlbackend mysql navigate net networking opacity output peertopeervideostreaming picturebox1 port print printpreview problemwithinstallation project record reports" reuse save savedialog searchbox serial soap storedprocedure string tcp temp text textbox timer toolbox trim updown useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio web wpf





