Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A QuizPlease log in to access this content. You will be redirected to the login page shortly.
LoginMicrosoft Microsoft DOS in Microsoft 3 years ago
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
Posted on 21 May 2022, this text provides information on Microsoft related to Microsoft DOS in Microsoft. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
Turn Your Knowledge into Earnings.
No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.