if (FALSE) {
local(envir=.PBSmodEnv,expr={
## Set 'Firefox' to open '.html' files (only applicable if Firefox is NOT default web browser)
setPBSext("html", '"c:/Program Files/Mozilla Firefox/firefox.exe" file://%f')
openFile("foo.html")
## Set 'notepad' to open '.txt' files (only applicable if notepad is NOT default editor)
## Note that commands to editors (at least in Windows) do not use 'file://'.
setPBSext('txt', '"C:/Windows/notepad.exe" %f')
openFile("foo.txt")
})
}
Run the code above in your browser using DataLab