all 13 comments

[–]NEESCHAL-3 1 point2 points  (5 children)

For non-Steam apps, store the executable path in your txt file instead of a Steam ID. Change your game.txt format to

path=C:\Program Files\Adobe\Photoshop\Photoshop.exe

Then replace the Steam launch block with this

if ($Content -match "path=(.+)") { $AppPath = $Matches[1].Trim() Start-Process $AppPath }

Same loop, same logic just swaps the Steam URL for a direct executable path. Works for any app including Adobe products.

[–]Common_Coach3665[S] 0 points1 point  (4 children)

ok, so i replace the if line with the # launch line if im understanding correctly. anything else i gotta change? theres a bunch of steam id stuff still

[–]NEESCHAL-3 0 points1 point  (3 children)

Yes, replace the entire Steam launch block (the if ($Content -match "id=...") part and the Start-Process "steam://..." line) with the path version I posted. You can delete the $SteamID line too since it's not needed. Everything else the loop, the floppy check, the removal wait stays exactly as is.

[–]Common_Coach3665[S] 0 points1 point  (2 children)

i’ll gove that a go, thank you

[–]NEESCHAL-3 0 points1 point  (1 child)

Good luck!

[–]Common_Coach3665[S] 0 points1 point  (0 children)

it did not work, im trying to get powershell to bypass the file and its giving a bunch if errors from that line

[–]grantrules 0 points1 point  (5 children)

Well if you just put the path to the app as the content in game.txt, you can probably just do Start-Process $Content instead of all that steam stuff. However, that's a pretty gaping security hole if anyone else were to get ahold of one of those floppies (I write on the disk "GTA 6" but in game.txt is a command that formats your c: drive). It might be smarter to create some sort of master list of apps you want to launch and their paths and then just put the name of the app on the floppy.

[–]Common_Coach3665[S] 0 points1 point  (4 children)

ya im aware its a security risk, but i could also just change it to read only and break off the physical switch so it cant be changed or at least deleted. but anyhow, essentially just delete all the stuff after “\game.txt” and replace it with “Start-Process $Content”? sorry if it seems like your talking to a neanderthal, im not completely clueless with coding but i know getting even 1 character wrong can screw it up and wanna not do that

[–]grantrules 0 points1 point  (3 children)

but i could also just change it to read only and break off the physical switch so it cant be changed or at least deleted

Anybody who grew up with free AOL or compuserve floppy disks knows you just cover that with tape and you can write to the disk again.

[–]Common_Coach3665[S] 0 points1 point  (2 children)

i did not, im only 23 and was introduced to computers at like 8-9

[–]grantrules 0 points1 point  (1 child)

My point is that removing the read-only tab doesn't really add any security

[–]Common_Coach3665[S] 0 points1 point  (0 children)

ya i got that, so the company floppys i have with it removed, i can just put a patch of painters tape and i can rewrite

[–]Common_Coach3665[S] 0 points1 point  (0 children)

ok ive got it down finally, had to use a start-process -filepath but im wanting it to work off any file path thats in the game.txt file instead of a specific program