Home > database >  Keep variable in RAM between PowerShell sessions
Keep variable in RAM between PowerShell sessions

Time:07-14

I've seen ways to keep data in files in order to preserve it between sessions, but I'm looking for a way to somehow keep it in memory. I want to to be able to set the variable, close the session, open a new session, and access the variable without the use of any files.

CodePudding user response:

When a program exits, all of its data is reclaimed from memory unless it stays open in the background, which hardly counts as a different session. What you're asking for is impossible to the extent of my knowledge.

  • Related