Solved

How to set WinRAR command line full month word with when compressing a file

Posted on 2011-09-03
9
417 Views
Last Modified: 2012-05-12
How can i set with WinRAR command line full month word when compressing a file.

Scrpt:
rar.exe a -m5 "-agdd Mmm yyyy" -r "./backup " ".\files"

Instead of "Sep" i want "September"

and how can i add a password on the same script?
0
Comment
Question by:compuiter
  • 4
9 Comments
 
LVL 5

Expert Comment

by:Feebleminder
ID: 36479298
0
 
LVL 10

Accepted Solution

by:
Arman Khodabande earned 500 total points
ID: 36479332
I don't think that is possible to change sep to September. Because it's not defined in winrar!
But I think you can rename your files using a DOS ren command if your using this rar command in a Bat file.
This is password assignment procedure :
Using simple password structure: (Switch -P[pwd] - encrypt file data)
It only encrypts file content.
Example
adding the contents of the folder "games" to the archive "secret", using the password 12345

RAR.exe a -p12345 -r secret games\*.*

--------------------------------------------------------------------------------

Using advanced password structure: (Switch -HP[pwd] - encrypt both file data and headers)

This switch is similar to -p[p], but switch -p encrypts only file data and leaves other information like file names visible. This switch encrypts all sensitive archive areas including file data, file names, sizes, attributes, comments and other blocks, so it provides a higher security level.

Without a password it is impossible to view even the list of files in archive encrypted with -hp.

Example
add the file report.txt to the encrypted archive secret.rar using the password 123456
WinRAR a -hp123456 secret report.txt


0
 
LVL 10

Expert Comment

by:Arman Khodabande
ID: 36479368
@Feebleminder:
The formats you provided are for Linux and can not be used with Winrar !

@compuiter
You can use "Renamer" to rename your files after they were created by rar.exe.
Download it here:
http://www.den4b.com/?x=downloads&product=renamer

This program supports full month names and has a command line version.
After downloading the software go to it's user manual First.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 59

Expert Comment

by:LeeTutor
ID: 36710619
I've requested that this question be deleted for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
 
LVL 10

Expert Comment

by:Arman Khodabande
ID: 36710621
The solution is provided but not attended by the author. It shouldn't be removed.
0
 
LVL 10

Expert Comment

by:Arman Khodabande
ID: 36935818
Thanks modus_in_rebus.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There's a better way to communicate time sensitive or critical info.
Why pager replacement is still an issue OnPage has what some might call a “hate/hate” relationship with pagers. Not much room for love. As we see it, pagers are an antiquated bit of technology. Pagers are dinosaurs which, like most dinosaurs, sho…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question