Jump to content

Temporary Dir


Recommended Posts

Hello all.

Would anyone know of a code which will specify Autoit to use it's own temp dir that I specified?

I am having problems with INI download.

When my program lauches first time e.g. in a sandbox - it will download ALL the content from the INI, whereas if the programmed has been ran twice it will not read the new content unless I clear PC cache.

Now I really don't want to clear mine or maybe other peoples cache. Is there a way around this?

Thanks.

-Tom.

My ickle pieces of software :3Radio Scriptr //Almost completeSimple IP/URL pinger, my first program. //CompletedSimple Downloader // Working - basic stateOn-GoingRadio Scriptr - Radio Server.

Link to comment
Share on other sites

If you are launching a program in a sandbox, then the problem is the sandbox. The point of sandboxes is that nothing gets out of it. Specify whatever directory you want, but the sandbox will relocate your ini file to another (sandboxed) directory, which is probably deleted after the program has terminated. This is probably why you can't access the ini file a second time.

#include <ByteMe.au3>

Link to comment
Share on other sites

$MyTempDIR = @TempDir & "\MyTemp"

Will give your code a try and repost the result!

If you are launching a program in a sandbox, then the problem is the sandbox. The point of sandboxes is that nothing gets out of it. Specify whatever directory you want, but the sandbox will relocate your ini file to another (sandboxed) directory, which is probably deleted after the program has terminated. This is probably why you can't access the ini file a second time.

hello again Sleepydvdr, I used the sandbox as a test. When on the Windows operating system itself, the INI will read once, when the program has shut down and it re-downloads the new INI with added data, it will still retrive the list from the old INI somehow. I think it's a problem with the cache.

Thanks for your replys!

My ickle pieces of software :3Radio Scriptr //Almost completeSimple IP/URL pinger, my first program. //CompletedSimple Downloader // Working - basic stateOn-GoingRadio Scriptr - Radio Server.

Link to comment
Share on other sites

What cache would that be? As long as you're not creating your scripts on Vista/Win7 in the Program Files folder, which you shouldn't be doing, then there's no cache. I'm not even sure how the Program Data folder thing works, but that may be your problem and nothing to do with AutoIT.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...