Jump to content

Microsoft Small Basic - Can You Change The Temp Folder Location


Recommended Posts

Posted

We've just started rolling out Microsoft Small Basic and we have an small issue that if you try and run your code after opening the program is crashes and stops working. If you save the program first and then run it, it works OK.

 

The reason it does this is because when you havent saved your program it compiles the .exe that runs in the temp folder. We have implemented a Group Policy that prevents .exe files from running in certain temp folders (as per other threads on here) to prevent Ransomware from running!

 

Is there a way of telling Microsoft Small Basic to use a different Temp folder location - I dont want to change the system wide temp folder as that would defeat the whole issue of trying to block Ransonware!

 

I've searched through the Registry and cant see anything specific to Microsoft Small Basic and what Temp Folder it uses so I wondered if there was an entry that could be added to force MSB to use a different folder as it's temp folder?

 

I've also noticed a file in the C:\Program Files (x86)\Microsoft\Small Basic folder called SB.exe.config but it doesnt have anything in it so not sure if an entry of some sort can go in there to force it to use a different Temp Folder?

 

Any ideas/suggestions appreciated!

  • 1 year later...
Posted

Did you ever find a solution to this? Since we've migrated to Windows 10 we are having issues with code not running for our students unless they create an EXE too.

 

We've just started rolling out Microsoft Small Basic and we have an small issue that if you try and run your code after opening the program is crashes and stops working. If you save the program first and then run it, it works OK.

 

The reason it does this is because when you havent saved your program it compiles the .exe that runs in the temp folder. We have implemented a Group Policy that prevents .exe files from running in certain temp folders (as per other threads on here) to prevent Ransomware from running!

 

Is there a way of telling Microsoft Small Basic to use a different Temp folder location - I dont want to change the system wide temp folder as that would defeat the whole issue of trying to block Ransonware!

 

I've searched through the Registry and cant see anything specific to Microsoft Small Basic and what Temp Folder it uses so I wondered if there was an entry that could be added to force MSB to use a different folder as it's temp folder?

 

I've also noticed a file in the C:\Program Files (x86)\Microsoft\Small Basic folder called SB.exe.config but it doesnt have anything in it so not sure if an entry of some sort can go in there to force it to use a different Temp Folder?

 

Any ideas/suggestions appreciated!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...