question

LillyBoerrigter-4213 avatar image
0 Votes"
LillyBoerrigter-4213 asked MotoX80 answered

Access denied for every batch job

Even if the batch job only contains an echo hello and a pause. Of course if I run it as administrator it works, but for some of my apps this option is not available. None of my IDEs work, Arduino, Eclipse, or VScode. In particular, with VScode, the batch file in question is in the vscjava.vscode-java-debug-0.35.0 extension under the folder, scripts, called launcher.bat. I believe the problem started to be present since the recent Windows update, but I'm not sure. Some solutions I have tried is giving cmd.exe full control, giving the batch group access to cmd.exe, going to the to the properties of the scripts folder and giving myself full control, disabling windows defender, windows defender firewall, disabling windows defender via regedit, reinstalling the VScode JDK. If any solutions can be provided, I would be extremely grateful.

windows-10-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MotoX80 avatar image
0 Votes"
MotoX80 answered

believe the problem started to be present since the recent Windows update,

If the updates were the cause, there would be millions of users with the same problems. More than likely something you ran on your PC modified something. Let's run some tests to see if we can identify the root cause.

Are you able to open a command prompt? Just a normal cmd.exe, do NOT "run as administrator".

Run these commands and see what you get.

 set comspec
 set pathext
 assoc .bat
 cd %temp%
 echo @echo.Hello > test.bat
 %windir%\system32\cmd.exe /c test.bat 
 call test.bat 

Does it look like this? (With your username.) Can you post the results?


125027-capture.jpg



capture.jpg (49.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.