Thanks for taking the time to ready my question.
I want to compact Temp.xlsx using the compact command.
I'm trying this: compact /c "C:\Users\bmcintyr\Desktop\TEMP\Temp.xlsx"
The above line is the only line in my .bat file. The .bat file is located on my desktop
The only thing that happens is that the above line repeats over and over endlessly until I do a Ctrl + c.
I've searched on line and think I'm doing everythign correctly. Any help would be great.
Thanks,
Brad
Update: I opened a command prompt and pasted the line after the > and it ran... I recevied this message:
"Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\bmcintyr>compact /c /s "C:\Users\bmcintyr\Desktop\TEMP\Temp.xlsx"
Compressing files in C:\Users\bmcintyr\Desktop\TEMP\
Temp.xlsx 12508 : 12288 = 1.0 to 1 [OK]
1 files within 1 directories were compressed.
12,508 total bytes of data are stored in 12,288 bytes.
The compression ratio is 1.0 to 1.
C:\Users\bmcintyr>"
So nothing was compressed, and I don't see a second file in the TEMP folder.
Brad
[Win 7 SP1, 32 bit]