Page 1 of 1

Winrar not working in Win11 64 bits

Posted: 23 Apr 2023 04:11
by zagix
HI,

Code: Select all

@echo off
pushd C:\testrar\create rar

For /F "delims=" %%G IN ('dir /ad /b') do (
   pushd "%%G"
   For /F "delims=" %%H IN ('dir /ad /b ^| findstr /i /b /e /V "local"') do (
   "C:\Program Files\WinRAR\Rar" a -r "C:\emulators\name\roms\%%H.rar" "%%H"
   )
   POPD
)
popd
Previously in Win7 64 bits was working, Folder Input & Output checked ok, winrar folder checked ok, folder local to be Exempted ok.
what's wrong?

Re: Winrar not working in Win11 64 bits

Posted: 23 Apr 2023 04:30
by ShadowThief
Hard to say without a description of what "isn't working." I've been using Winrar on Windows 11 since Windows 11 came out and it works perfectly on my machine.

Just at a glance though, I'd recommend changing pushd C:\testrar\create rar to pushd "C:\testrar\create rar" since it looks like that folder name has a space in it.

Re: Winrar not working in Win11 64 bits

Posted: 23 Apr 2023 05:05
by zagix
ShadowThief wrote:
23 Apr 2023 04:30
Hard to say without a description of what "isn't working." I've been using Winrar on Windows 11 since Windows 11 came out and it works perfectly on my machine.

Just at a glance though, I'd recommend changing pushd C:\testrar\create rar to pushd "C:\testrar\create rar" since it looks like that folder name has a space in it.
I have tried that option but still unable to create folder archives in destination folder.

Re: Winrar not working in Win11 64 bits

Posted: 23 Apr 2023 10:01
by ShadowThief
Your script should be getting some error if the file isn't being created; either you don't have write permissions to the file, or the drive is full, or your path to rar.exe isn't what you think it is. Again, without knowing what the exact error is, your question cannot be answered.