\sumatrapdfcache should not be an issue itself as it should be “relative” in the same folder as the portable.exe (avoid any “portable app” variations that may fiddle with the data files, some are good but some are not).
In most recent Pre-release versions if the file was on a “removable” drive (however some modern USBs are set as “fixed letter drives”) SumatraPDF will tag the drive entry as variable with ?:\ and try different drives. however that too can cause problems Pre-release version 32-bit. Memorized files are not opened from the start page after restarting the program · Issue #2219 · sumatrapdfreader/sumatrapdf · GitHub
So for the above case, there should be no problem dropping a usb.pdf onto the usb sumatrapdf.exe with -fullscreen in a shortcut and the solution below is only needed for multiple tab users.
For one file all you need is a bat file or shortcut with
"%~d0\Apps folder\SumatraPDF\SumatraPDF.exe" -fullscreen "%1"
that allows you to drop a file onto it
or to simply double click the bat file change that to
"%~d0\Apps folder\SumatraPDF\SumatraPDF.exe" -fullscreen "%~d0\Data files\lecture-sept.pdf"
The main problem could be in the history of more than one file that you opened last time on the F drive but now are in the same folder on G
The simplest solution in that case is to replace in SumatraPDF-settings.txt any previous F:\ with G:\
There may be clever ways to do that in raw powershell vba wscript etc.HOWEVER as there is a risk you may not find that on ALL other machines or be restricted then I suggest its simplest to use just .batch .cmds
FilePath = %~d0[etcetera]
If the drive is the same as %lasttime% it wont matter so adding that all up in your cmd
"%~d0\Apps\File Tools\fart\fart199c\fart32.exe" -i "%~d0\Apps\SumatraPDF\SumatraPDF-settings.txt" "FilePath = %lastdrive%" "FilePath = %~d0"
echo set lastdrive=%~d0> %~d0\lastdrive.bat
"%~d0\Apps\SumatraPDF\SumatraPDF.exe" -fullscreen "%1"
and that last %1 allows you to drag a different first file (lecture-sept.pdf if you wish) onto the cmd to start the session off or replace the
of course you can remove \ edit those folders and subfolders as you wish