Atlas icon indicating copy to clipboard operation
Atlas copied to clipboard

[BUG] - Scripts Not finding requested file.

Open LYNK-INCUU opened this issue 1 year ago • 10 comments

Description

So all the scripts that use the files similar to RunAsTI.cmd don't work and give an error that the file can't be found. image-26 But if I copy the file path and edit the script like this.. notepad_2024-01-15_19-33-45 It does work. Issue being. The files in the Atlas folder are read-only and I'm also not going to do this for every script. image-15

Steps to reproduce

Run script that errors out. Edit. Run script again.

Expected behavior

Should complete the changes without any errors.

Actual behavior

Can't find file or partially completes the script.

Atlas Edition

Atlas for Windows 11 23H2

Desktop information

I5 12th gen 2.60ghz 32gb ram ddr4 Gigabyte SSD and Samsung 980 1tb RTX 4060

Additional content

No response

LYNK-INCUU avatar Jan 19 '24 03:01 LYNK-INCUU

One of these scripts is the "Enable sleep.cmd" 20240119_004814

n00b69 avatar Jan 19 '24 09:01 n00b69

You can add C:\Windows\AtlasModules to $PATH, which is probably the intended way for this to work.

acuteaura avatar Jan 26 '24 20:01 acuteaura

I'll give it an shot

You can add C:\Windows\AtlasModules to $PATH, which is probably the intended way for this to work.

LYNK-INCUU avatar Jan 30 '24 03:01 LYNK-INCUU

You can add C:\Windows\AtlasModules to $PATH, which is probably the intended way for this to work.

this doesn't seem to work unless i've done it wrong image ex notifications on script judt quits without doing anything

LYNK-INCUU avatar Feb 02 '24 13:02 LYNK-INCUU

You did. It needs to be added to the (existing) one called PATH, on the system one above.

acuteaura avatar Feb 02 '24 13:02 acuteaura

You did. It needs to be added to the (existing) one called PATH, on the system one above.

I put it in path before aswell. but it still doesnt run the scripts

LYNK-INCUU avatar Feb 03 '24 09:02 LYNK-INCUU

image its in here but still doesnt work

LYNK-INCUU avatar Feb 10 '24 03:02 LYNK-INCUU

pretty sure there's a bin folder inside there that contains the actual scripts; set it to that?

acuteaura avatar Feb 10 '24 11:02 acuteaura

For me it fixed adding C:\Windows\AtlasModules\Scripts to $PATH

Madgique avatar Feb 12 '24 16:02 Madgique

image image image I put the Path under system and running toggle defender for example gives strange errors and also doesnt find the file whatever one it asks for.

LYNK-INCUU avatar Feb 12 '24 18:02 LYNK-INCUU

Sorry but what? Why is this not planned? You literally cannot use some of the scripts in the AtlasOS folder because of this error.

n00b69 avatar Mar 18 '24 20:03 n00b69

I'm sorry for closing without a reason - that was an accident.


I have implemented a different method for adding to the PATH variable for the next release, which should fix this issue.

The PATH variable was likely not set correctly because it was too long for setx to handle properly. This could be caused by software installed before the Atlas Playbook, meaning a fresh Windows install wasn't used. We strongly recommend following the Atlas documentation to install Atlas.

I have rewritten the entire component removal script for v0.4.0, which likely means those weird errors in the Defender script will disappear.

he3als avatar Mar 18 '24 21:03 he3als