if i have this code, this creates a problems if other user that dont have acces to the network share tryes to run the method. How can i make this method write the file to the current users desktop?
private void skriveTilFil()
{
StreamWriter writer = new StreamWriter(@"\\192.168.1.2\tmp\script.vbs");
writer.WriteLine(scripttbx.Text);
writer.Dispose();
}