Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unzip in a folder with changing numbers in the name
#1
Hi guys,

Great program, I love it! But I have come across something I cannot solve. Sorry for my bad english.

I want to unzip a file in the folder:
c:\ProgramData\OfficeSystem123\Programs\

The numbers 123 in bold will be different on all the computers I will execute the macro on.
I am not able to substitute the three numbers and find the Programs\ folder.

Note: There are always 3 numbers (I mean it is padded to three, so i can be 001, 456, 999, etc.).

In a batch file, I manage to get to the OfficeSystem630 by using the *, so c:\ProgramData\OfficeSystem*
But two problems: I am not able to use the * in quick Macro (which in the worst case my macro could call a batch file so it is not that bad) but using the star, I am not able to specify the next folder, so I cannot reach officeSystem630\Programs

Any help greatly appreciated!

EDIT: I'm sorry, I realize I should have posted this in Computer world since it si not related to QM.
Thanks.
#2
Ok nevermind Smile

I called a batch file within my macro. In the batch file I can get to that specific folder doing:
cd %Programdata%
cd OfficeSystem*
cd Programs

So I got it working now.


Forum Jump:


Users browsing this thread: 1 Guest(s)