vb.net - Creating a temporary file in VB on Windows 7 PC -


i have vb program creates temporay pdf file opens outlook , attaches file. create file in application path (the location program running - c:\program files\progamname). works fine in xp appears there no crazy permission issues. in windows 7, file not appear. there no errors, file not exist in location.

i've changed path root of c:\, doesn't work either. suspect it's w7 virtualisation, question can create file can access again?

i trying avoid creating on share on server, it's looking place put there doesn't seem many places user can write files in windows 7.

surely there must location users can access (without being administrators) create files. don't me started on fun have had registry in w7!!!

thanks

patrick

you need create file in system's temp directory, can find calling path.gettemppath().

in general, program should write files in user's application data (or temp) directories , write registry keys in hkey_current_user. (this true in any version of windows)
if follow these guidelines, won't have trouble in windwos vista or 7.
should never write information places shared multiple users.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -