April15Hater
Accountant
- Local time
- Today, 07:26
- Joined
- Sep 12, 2008
- Messages
- 349
Re: NT Command Script and Documented Steps to Decompile / Compact / Compile an Access
Hey Michael,
This script has saved us many headaches!
Having said that, I don't think it's running the full process. The reason I say that is because when I run it, %DBfilesizepre% and %DBfilesizepost% do not echo values in the command prompt window, so I think it might just be running it once and that's all...? I could be wrong especially since my command script knowledge is limited.
So I was wondering if you could help me understand a few parts of the code so I could debug if there is indeed an issue.
The code I'm having trouble understanding is:
Thanks for all of your help!
Joe
Hey Michael,
This script has saved us many headaches!
Having said that, I don't think it's running the full process. The reason I say that is because when I run it, %DBfilesizepre% and %DBfilesizepost% do not echo values in the command prompt window, so I think it might just be running it once and that's all...? I could be wrong especially since my command script knowledge is limited.
So I was wondering if you could help me understand a few parts of the code so I could debug if there is indeed an issue.
The code I'm having trouble understanding is:
Code:
FOR /F "usebackq" %%A IN ('%DBfile%') DO SET DBfilesizepre=%%~zA
FOR /F "usebackq" %%A IN ('%DBfile%') DO SET DBfilesizepost=%%~zA
Thanks for all of your help!
Joe