none
vb.net temporary files RRS feed

  • Question

  • I work on a web vb.net 2010 desktop application application and I would like to know where temporary files are located at that I can delete. I have read that there a 'work' files and/or temporary files. I would like to know wher these files are located at so I can delete them.

    Thus can you tell me where these files are located at on my workstation?

    Wednesday, July 26, 2017 4:52 PM

Answers

  • I work on a web vb.net 2010 desktop application application and I would like to know where temporary files are located at that I can delete. I have read that there a 'work' files and/or temporary files. I would like to know wher these files are located at so I can delete them.

    Thus can you tell me where these files are located at on my workstation?

    New console app, with this code:

    Module Module1
    
        Sub Main()
            Dim result As String = System.IO.Path.GetTempPath()
            Console.WriteLine(result)
            Console.ReadLine()
        End Sub
    
    End Module

    Thursday, July 27, 2017 4:18 AM

All replies

  • Where did you read that, for me at least it is complete new?


    Success
    Cor

    Wednesday, July 26, 2017 5:07 PM
  • This might be vb.net web forms and not desktop applications.
    Wednesday, July 26, 2017 9:22 PM
  • This might be vb.net web forms and not desktop applications.
    But in that case you cannot find the temp files, the webbrowser which you use stores the temp files. And you as programmer don't normally not know if that is IE, Chrome, Yandex, Edge, Firefox, Safari and many more. All store there temp files on different places and that is not a VB problem. 

    Success
    Cor

    Wednesday, July 26, 2017 9:55 PM
  • I work on a web vb.net 2010 desktop application application and I would like to know where temporary files are located at that I can delete. I have read that there a 'work' files and/or temporary files. I would like to know wher these files are located at so I can delete them.

    Thus can you tell me where these files are located at on my workstation?

    New console app, with this code:

    Module Module1
    
        Sub Main()
            Dim result As String = System.IO.Path.GetTempPath()
            Console.WriteLine(result)
            Console.ReadLine()
        End Sub
    
    End Module

    Thursday, July 27, 2017 4:18 AM