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.

Bug in determining %ROOT%?

Featured Replies

In core.js defaultWPI() you get the ROOT with

	// %root%
root=fso.GetParentFolderName(wpipath);
if (root.indexOf(":")==1)
root=root.substr(0,2);

But ROOT should be used to get the WPI-parentfolder.

My folder-structure looks like this

Drive:\any\directory
- WPI (only with contents from the download-package)
- Tools (my additional Tools)
- Applications
- Common
- Multimedia
- Microsoft
- ...

And my commands look like this:

%ROOT%\Applications\Multimedia\...

But with the Bug above my commands does not work. :-(

Only with

root=fso.GetParentFolderName(wpipath);

all works fine.

Al

Edited by AlBundy33

You are correct. The person that originally brought it to my attention (number of backslashes needed), and myself, have WPI only 1 folder deep, so the code for us is correct. Change it to this:

	// %root%
root=fso.GetParentFolderName(wpipath);
if (root.substr(root.length-1,1)=="\\")
root=root.substr(0,root.length-1);

Will be updated in dowload package, as well.

  • Author

Thanks - this works for me.

Btw: How do you debug your code?

To find out what was wrong I used a lot of alerts. :-/

Al

The more I thought about, the more I remembered why I did it the original way.

To me, root means the very beginning, as in C: or D:, no matter how deeply buried WPI is.

Parent would mean one folder up from the starting place.

Lawrenca came up with the original code, and like me, we are just one folder deep, so it worked for us. That is just how we envisioned a "standard" dvd to be laid out:

D:

---I386

---Install

------Tools

------Utilities

------etc.

---WPI

------Install (could be here also)

Not like this:

D:

---I386

------Software

---------WPI

---------Apps

---------Utilitiies

But, too each his own. Nothing is written in stone.

This is also applicable when running from a network share. I also think of root as C:\, Y:\. I would prefer the variable be named WPIROOT to eliminate any confusion. I like that you grouped it in 7.2.

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.