473,320 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

vb2005 - Temp file and Cache

79
Hello,

First of all, i am glad to be a member here i really like the way it is made.

I am learning VB.net using Visual Basic 2005.

I haven't done any seriously cool with but i am currently doing a project and need some help.

Can some one please explain on how i can find PATH to the temporary directory and Cache directory where it stores and keeps all the caches and temporary files using VB2005.
Sep 13 '08 #1
4 1385
jg007
283 100+
I'm not completely sure what you are looking for but try -

Application.LocalUserAppDataPath
Application.StartupPath
System.IO.Path.GetTempPath()
Sep 13 '08 #2
hi fellow

The easy way is to use the << my >>

CODE


Dim MyPrograms As String = My.Computer.FileSystem.SpecialDirectories.ProgramF iles

Dim MyTmp As String = My.Computer.FileSystem.SpecialDirectories.Temp

Dim MyDocuments As String = My.Computer.FileSystem.SpecialDirectories.MyDocume nts

END CODE

I hope this could help you
Sep 14 '08 #3
jg007
283 100+
hi fellow

The easy way is to use the << my >>

CODE


Dim MyPrograms As String = My.Computer.FileSystem.SpecialDirectories.ProgramF iles

Dim MyTmp As String = My.Computer.FileSystem.SpecialDirectories.Temp

Dim MyDocuments As String = My.Computer.FileSystem.SpecialDirectories.MyDocume nts

END CODE

I hope this could help you
thanks

I thoiught that their was something in the 'my' section but I could not find it when looking
Sep 14 '08 #4
zubair1
79
Thanks alot rpicilli

yup, i figured after searching for a whole day :)

i didnt know i got a reply here even though i did choose instant notifications.

anyways thanks for the help

I'm using this to find all the files in a directory now

Dim FolderPath As ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetFiles(cacheDir, FileIO.SearchOption.SearchAllSubDirectories, "*.*")

My.Computer.FileSystem.GetFiles(FolderPath, FileIO.SearchOption.SearchAllSubDirectories, "*.*")

Thanks for the help

Regards
Sep 17 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: James_101 | last post by:
My training piece is in Authorware. The user logs in with last name and a four-digit number. Authorware sends this user identifier to an asp page called db_read.asp. This file sends a SQL SELECT...
1
by: Tim | last post by:
Hi, We are downloading a few thousand rows of data for users to choose from and need to speed up the operation. The data is related in four levels. The current design allows the user to select...
1
by: Reader | last post by:
Hello, I would like to know if there is a way to cache the xmlserializer-generated temp files and have the program reuse these cached files upon new application instances. For example,...
0
by: kjhkj | last post by:
I have just downloaded vb2005 from the ms website. I would like to keep all the installation files so that I can reinstall if necessary, but it seems that microsoft in their wisdon are placing the...
7
by: Rich | last post by:
Hello, I have an SP that inserts data into a sqlserver table. If a condition is not met within the SP after the data has been inserted into the table, the SP will rollback the insert. If I...
2
by: Burbletrack | last post by:
Hi All, Hope someone can help me... Im trying to highlight the advantages of using table variables as apposed to temp tables within single scope. My manager seems to believe that table...
2
by: JerryWEC | last post by:
I'm getting the following warnings related to UnmanagedRegistration.cache and ResolveAssemblyReference.cache and files being used by other process. I just can't find out why I'm getting these...
1
by: retroviz | last post by:
Hi. You may have seen the application I have created to retrieve the contents of a page that requires authentication (through a proxy): http://www.thescripts.com/forum/thread665675-proxy.html ...
1
by: Vae07 | last post by:
Ok so here is a brief summary of my problem. I need a pop up form that submits input text box information to a pocket excel workbook upon a command botton click. Text box inputs are checked for...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.