Click here to Skip to main content
15,902,846 members

Comments by amaljosep (Top 32 by date)

amaljosep 8-Mar-13 1:02am View    
how to make the column as writable?
amaljosep 24-May-12 8:54am View    
i am using the corresponding code from the page you specified,

public void OpenNetworkConnection(string savePath, string username, string password)
{
var directory = Path.GetDirectoryName(savePath).Trim();
var process = new Process { StartInfo = new ProcessStartInfo
{
WindowStyle = ProcessWindowStyle.Hidden, FileName = "cmd.exe", Arguments = "NET USE " + directory + " /user:" + username + " " + password
}
};
process.Start();
process.Close(); }

public void CloseNetworkConnection(string savePath)
{
var directory = Path.GetDirectoryName(savePath).Trim();
var process = new Process
{
StartInfo = new ProcessStartInfo
{
WindowStyle = ProcessWindowStyle.Hidden, FileName = "cmd.exe", Arguments = "NET USE " + directory + " /delete"
}
};
process.Start();
process.Close(); }

}
amaljosep 24-May-12 8:29am View    
still its giving me error saying "network path cannot be found"..wat can be the reasons??
amaljosep 24-May-12 6:35am View    
yes..i also think so..
amaljosep 24-May-12 6:34am View    
thanks a lot for helping me....but still its giving me the same error.