Skip to content
View in the app

A better way to browse. Learn more.

MSFN

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.

Question about "FileExists" Command

Featured Replies

I am in need of your assistance. I am working on trying to get the last little bit of the Theme and Layout selector working. Just need it to do some error checking prior to loading.

I need to do a check on about 50+ files (The graphics and such) I need the system to check an make sure the file is there and if not a message pops up and lets the user know what files are missing and then notify them that Theme is switching to "Classic Theme". What is the easiest way to do this as I am not sure?

I need something like this :o

if (!FileExists(wpipath + " Themes\\" + Theme + "\\ allbutton.gif"))
{
alert(“allbutton.gif file does not exist.\n\nSwitching to 'Classic', the default Theme.");
Theme='Classic';

return false;
}

But I would need to do this for every file in the folder. Is there an easier way to do this than have 50+ “FileExists” checks?

I would want it to list out all missing files onscreen once the checks are done, not every check, maybe also have the list sent to a debug file for later use so that can check what files are missing.

Also I would need it to check to see if the current selected theme is “Classic” and if it is and is missing files to report “Classic Theme damaged. Please reinstall!” Then exit program.

Let me know if you have an easy solution.

Thank you,

- Albert

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.