On Thu, Jul 8, 2010 at 11:49 AM, Michael Foord <fuzzy...@voidspace.org.uk>wrote:
> On 08/07/2010 19:46, Rob Brown-Bayliss wrote: > > On Thu, Jul 8, 2010 at 11:38 PM, Michael Foord<fuzzy...@voidspace.org.uk> > <fuzzy...@voidspace.org.uk> wrote: > > > > Writing to C: in Vista and Windows 7 requires elevated permissions so your > application will require admin privileges. Can you not choose another > location to write to (one of the user folders)? > > > > I could. On linux I would write to /tmp is there a similar concept in > windows vista and 7? > > > > There are multiple ways of finding the temporary directory in .NET. > > > Are there some good docs along the lines of .NET python equivalents of > win32api.GetUserName() and others? > > > > > System.Environment.UserName > > System.Environment almost certainly has the temp directory as well. Check > that or System.IO.Directory. > > All the best, > > Michael > System.IO.Path.GetTempFileName() will create and return the path to a temporary file: http://msdn.microsoft.com/en-us/library/system.io.path.gettempfilename.aspx
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com