You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey All -
I'm trying to create a Custom Action which will detect RAR files, Extract them to a folder named after the RAR filename, then move the file to an archive folder.
I created a batch file which creates the folder and extracts the contents to it, but variable most of the time won't move the file afterwards as when I try manually deleting the file I cannot as UnRar.exe has it. Since Belvedere keeps running, it will keep adding UnRar.exe processes until I disable the rule :(. It seems that perhaps the file isn't finished extracting before trying to move however adding a timeout didn't help the situation.
It would really help if there was an variable I could use in my batch scripts which Belvedere refers to the found files OR a way to make the rules only run once per found file.
Any Ideas? Here's the script I am trying to use in Custom Actions:
path=%path%;C:\Program Files\WinRAR
setlocal
set rarFile=%1
set rarfilename=%~n1
mkdir "C:\Downloads"%rarfilename%""
unrar x "%rarfile%" "C:\Downloads%rarfilename%"
move "C:\Downloads%rarFile%" "C:\Downloads\Compressed"
Thanks!
The text was updated successfully, but these errors were encountered:
Hey All -
I'm trying to create a Custom Action which will detect RAR files, Extract them to a folder named after the RAR filename, then move the file to an archive folder.
I created a batch file which creates the folder and extracts the contents to it, but variable most of the time won't move the file afterwards as when I try manually deleting the file I cannot as UnRar.exe has it. Since Belvedere keeps running, it will keep adding UnRar.exe processes until I disable the rule :(. It seems that perhaps the file isn't finished extracting before trying to move however adding a timeout didn't help the situation.
It would really help if there was an variable I could use in my batch scripts which Belvedere refers to the found files OR a way to make the rules only run once per found file.
Any Ideas? Here's the script I am trying to use in Custom Actions:
path=%path%;C:\Program Files\WinRAR
setlocal
set rarFile=%1
set rarfilename=%~n1
mkdir "C:\Downloads"%rarfilename%""
unrar x "%rarfile%" "C:\Downloads%rarfilename%"
move "C:\Downloads%rarFile%" "C:\Downloads\Compressed"
Thanks!
The text was updated successfully, but these errors were encountered: