getnative icon indicating copy to clipboard operation
getnative copied to clipboard

Output Directory Write Permission error for batches in Windows

Open Ironclad17 opened this issue 9 months ago • 5 comments

A minor inconvenience but I was hoping to generate a few graphs from different screenshots in a batch without having to move or rename files. The default behavior overwrites previously generated results so I thought I could set the output directory based on input file to separate them. Being able to name the output files would work better. for %%a in ("*.png") do getnative "%%a" -k bicubic -b 0.33 -c 0.33 -min 400 -max 1200 -ar "16/9" -pf png -dir "E:/Editing/getnative/%%~na" Gives the error

E:\Editing\getnative>getnative.exe "source" -k bicubic -b 0.33 -c 0.33 -min 400 -max 1200 -ar "16/9" -pf png -dir "E:/Editing/getnative/source" Using imwri as source filter Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in run_code File "C:\Users\PC\AppData\Local\Programs\Python\Python311\Scripts\getnative.exe_main.py", line 7, in File "C:\Users\PC\AppData\Local\Programs\Python\Python311\Lib\site-packages\getnative\app.py", line 410, in main _getnative() File "C:\Users\PC\AppData\Local\Programs\Python\Python311\Lib\site-packages\getnative\app.py", line 383, in _getnative loop.run_until_complete( File "C:\Users\PC\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "C:\Users\PC\AppData\Local\Programs\Python\Python311\Lib\site-packages\getnative\app.py", line 300, in getnative raise PermissionError(f"Missing write permissions: {output_dir}") PermissionError: Missing write permissions: E:\Editing\getnative\source

Adding write permission to the batch file, adding admin privilege to getnative.exe, nor elevating command prompt worked.

Ironclad17 avatar Oct 03 '23 16:10 Ironclad17