| | |
How to open a File from password protected shared server through programming
Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
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 .net2008 2008 access add application array assignment basic beginner box browser button buttons click code combo convert cpu cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationthesis dissertationtopic dosconsolevb.net editvb.net exists fade filter firewall forms html image images input isnumericfuntioncall listview math mobile module mssqlbackend mysql navigate number opacity open panel picturebox picturebox2 port print printing printpreview record regex reports" reuse right-to-left savedialog serial settings shutdown socket sqldatbase sqlserver storedprocedure string temp temperature textbox timer timespan transparency txttoxmlconverter useraccounts usercontol usercontrol vb vb.net vb.nettoolboxvisualbasic2008sidebar vbnet vista visual visualbasic.net visualstudio.net web winforms wpf wrapingcode xml year





