Jump to content
Sign in to follow this  
Daniza

Question About Temp Folder's

Recommended Posts

Daniza

Hello Guys! I need to Clarify some question's on my mind regarding Temp Folder because I want to keep some files there for a longer time 4 files with 200kb each.

1. My friend told me that it was not safe to store Files on Temp Folder because System has a behavior to delete things there if RAM goes no space?

2. If No, Can I Store files (4 files 200kb) on Temp Folder what are the disadvantage?

Sorry but Google seems no help, all I see was How to Delete Files on Temp Folder.

Share this post


Link to post
Share on other sites
iamtheky

The directory C:\Temp and your operating system's paging file are not the same thing.  There are lots of things that will clear that directory, but the OS needing space and removing contents from that particular location is not one i have encountered.

  • Like 1

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites
Daniza

Thanks @iamtheky , In short I can't store files longer here %TEMP%, moving my files to %AppData% :)

Share this post


Link to post
Share on other sites
iamtheky
Posted (edited)

the %temp% envrionmental variable is usually, on win10 enterprise, pointed at appdata/local/temp (unless you need it dropped into roaming, %appdata% offers no additional use that i can tell)

what is returned when you type "echo %temp%" into a cmd prompt?

and if you are already using locations within your user profile, I would be even more surprised if the OS overwrote those directories whimsically.

Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites
Daniza

C:\Docume~1\SERVER\LOCALS~1\Temp , I got this hmm you mean even on %appdata% no luck to have a save storage, Can you suggest me a folder which I can store some files without using path because they all have different setup width Admin Privilege, im using Environ("AppData") or Environ("temp") but like what you said they might be deleted.

Share this post


Link to post
Share on other sites
iamtheky
Posted (edited)

Im saying the opposite.  In my opinion, you can store indefinitely and execute from any of the locations you have mentioned. 

Even the last directory returned was in your local settings, in your Documents and Settings.  If you have had no issues, i would with all confidence predict you will have none there.  Has there been an issue?

 

Edited by iamtheky
  • Like 1

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites
Daniza

No, issues. Just my friend bothered me regarding storing my user's data value on excel on %Temp% and call it if the user needs the data value.

Thanks for info regarding Temp and Appdata :)

@iamtheky ^_^

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×