|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
temp directoryhey all,
is there a way in vb.net code to access whatever temp folder location any pc is pointing to? thanks, rodchar Hi,
If by the temp folder you are referring to the folder which opens when I type %temp% in the Run field and is located at : C:\Documents and Settings\<UserName>\Local Settings\Temp Then you can use the GetEnvironmentVariable method of the Environment class as : -------------------------- Dim path As String = Environment.GetEnvironmentVariable("Temp") Process.Start(path) -------------------------- If you mean the Temporary Internet Files folder, then you can simply use the GetFolderPath method of the Environment class with the Enum value "InternetCache". HTH, Regards, Cerebrus. "rodchar" <rodc***@discussions.microsoft.com> schrieb: 'System.IO.Path.GetTempPath'.> is there a way in vb.net code to access whatever temp folder location any > pc > is pointing to? -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> thank you everyone.
Show quoteHide quote "rodchar" wrote: > hey all, > > is there a way in vb.net code to access whatever temp folder location any pc > is pointing to? > > thanks, > rodchar
TableAdapters and true N-Tier
dotnet security exception issues Newbie Question about Value and Reference Types Addhandler with parameter ? Newbie: Examples of ExecuteNonQuery VB2005 structures to file Dragging Borderless Forms How I generate a tone programatically without resorting to playing a file such as MP3, WAV, etc.? Off topic--best place to ask a question Launching a Server Side Process |
|||||||||||||||||||||||