Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Get ( TemporaryPath ) not consistant on Windows

Featured Replies

Hey all,

 

We are using FMP 9 - 11 Clients all on windows, it doesn't matter if the solution is run from a server or run from the local system.

 

When I use Get (Temporary Path) I am expecting to get something similar to this  " /C:/Users/ronc/AppData/Local/Temp/S10/  "  it should end with Temp/S10.

What I am getting is sometimes this  "  /C:/Users/ronc/AppData/Local/Temp/S10.1/  "  or  "  /C:/Users/ronc/AppData/Local/Temp/S10/S10.1   "  on different systems and clients.  I can use Get (Temporary Path) in one script and it works fine, in another it doesn't, or go back and run the first script and it works fine.  It doesn't matter if the software is on a server or is run from the local machine, it is still inconsistant. The problem is that these last two paths don't exist and the script will fail when we try to put or get anything there.   This started noticing it about 2 months ago and seems to be getting worse.  We have used this heavily throughout our software and have not had any issues for years till now.

 

My work around for now is to get the path from Get (Temporary Path), create the folder based on what is returned, then do the temp work.  This would be a major undertaking to update all of our code for this issue.  So before doing this I was wanting to know what could be causing this and see if there might be another solution.

 

Has anyone run into this before and know what may be causing this?  Any help would be greatly appreciated.

 

-Ron

 

There used to be a bug in FMP that failed to clear the temp folder when FMP was quit (that's what is was supposed to do). As a consequence the temp fodlers could get huge.

 

Can't remember when it got fixed, but certainly existed in v9, possibly v10. Definitely fixed in v11.

  • Author

Yes,  I remember that, thanks.  I checked to make sure that FMP would clear the S10 folder and it does on close.  It just seems to get lost when it reports where and what the folder should be. 

 

Thanks for the help.

This could involve all combinations of v9, v10 and v11 with XP, Vista and Win7

 

IIRC the AppData folder moved in Win7 and is definitely in a different structure than XP.

Just to be clear: IIRC FMP keeps the temp folder around only as long as the script runs.  If you write something to a temp path in one script and try to read it from a different script at a later time, that folder is not going to be there anymore.

 

It wasn't clear from your description if you are writing and reading all inside the same script or not.

Thanks for the clarification,

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.