Winrar not working in Win11 64 bits

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
zagix
Posts: 68
Joined: 16 Oct 2013 23:19

Winrar not working in Win11 64 bits

#1 Post by zagix » 23 Apr 2023 04:11

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?

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Winrar not working in Win11 64 bits

#2 Post by ShadowThief » 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.

zagix
Posts: 68
Joined: 16 Oct 2013 23:19

Re: Winrar not working in Win11 64 bits

#3 Post by zagix » 23 Apr 2023 05:05

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.

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Winrar not working in Win11 64 bits

#4 Post by ShadowThief » 23 Apr 2023 10:01

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.

Post Reply