1.

Solve : Empty folders after WinRar Compression wildcard. PLEASE HELP!?

Answer»

Good Day

I am trying to LEARN VBs scripting for my work. I have a task to schedule a script which can compress FILES of the past month once every month.

example: MAY 1 - 30 files compress every Jun 15th.   

Sources: C:\Test\May1\files.txt
               C:\Test\May2\files.txt
               C:\Test\Jun1\files.txt
               C:\Test\Jun2\files.txt

In my vbs script I wrote:
 objShell.run "CMD /C cd \ & cd C:\Program Files\WinRAR\ & WinRAR a -r C:\ArchiveDestinationFolder\FileName.rar C:\Test\May*" 

The output results to a FileName.rar with folders May1 and May 2 BUT THEY ARE EMPTY! there are no files.txt inside them!

What seems to be the problem? Please help



Discussion

No Comment Found