'Display items depending on whether a file exists in a specific folder, and to create/delete the file depending on what the button is set to
Assets: (dead link)
The file that needs to be created when the button is clicked while being displayed as a red face is testing.dat in the folder %AppData%/CVN All Access/watchlist, the folder should be created if it doesn't exist. Likewise, the testing.dat should be deleted if the face is green and is clicked (the folder %AppData%/CVN All Access/watchlist should remain though).
Pretty much every solution I could find is too complex and/or doesn't work. My problem recommends a simple and easy-to-understand solution.
If the folder name %AppData% cannot be used in JavaScript, maybe use C:/CVN All Access/watchlist as the destination instead.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
