PC Review


Reply
Thread Tools Rate Thread

Compact command yields zero files

 
 
=?Utf-8?B?aG1t?=
Guest
Posts: n/a
 
      4th Jul 2007
At the command prompt, I tried to use the compact/c command (followed by the
file name) at the command prompt to compress a file. I got the return
message:

0 files within 1 directories were compressed.
0 total bytes of data are stored in 0 bytes.
The compression ratio is 1.0 to 1.

The file was not already compressed.

Why didn't it work, and how do I get it compress my file?

 
Reply With Quote
 
 
 
 
Sharon F
Guest
Posts: n/a
 
      4th Jul 2007
On Wed, 4 Jul 2007 02:36:00 -0700, hmm wrote:

> At the command prompt, I tried to use the compact/c command (followed by the
> file name) at the command prompt to compress a file. I got the return
> message:
>
> 0 files within 1 directories were compressed.
> 0 total bytes of data are stored in 0 bytes.
> The compression ratio is 1.0 to 1.
>
> The file was not already compressed.
>
> Why didn't it work, and how do I get it compress my file?



Using this page as a reference, it looks like you might need the
/s[:<dir>] switch as well:
http://technet2.microsoft.com/window....mspx?mfr=true

If this folder has been compressed by XP's automatic compression in the
past, it will not compress more.

--
Sharon F
MS-MVP ~ Windows Shell/User
 
Reply With Quote
 
=?Utf-8?B?aG1t?=
Guest
Posts: n/a
 
      4th Jul 2007
Thanks Sharon.

Please note I am only trying to compress a single file. The /s switch
appears to be for entire directories.

However, the web site you referred me to gave examples, showing that the
compact command is meant to be used from the current directory. By changing
the current directory to the one containing the file, compact worked.

Thanks again.

"Sharon F" wrote:

> On Wed, 4 Jul 2007 02:36:00 -0700, hmm wrote:
>
> > At the command prompt, I tried to use the compact/c command (followed by the
> > file name) at the command prompt to compress a file. I got the return
> > message:
> >
> > 0 files within 1 directories were compressed.
> > 0 total bytes of data are stored in 0 bytes.
> > The compression ratio is 1.0 to 1.
> >
> > The file was not already compressed.
> >
> > Why didn't it work, and how do I get it compress my file?

>
>
> Using this page as a reference, it looks like you might need the
> /s[:<dir>] switch as well:
> http://technet2.microsoft.com/window....mspx?mfr=true
>
> If this folder has been compressed by XP's automatic compression in the
> past, it will not compress more.
>
> --
> Sharon F
> MS-MVP ~ Windows Shell/User
>

 
Reply With Quote
 
Sharon F
Guest
Posts: n/a
 
      4th Jul 2007
On Wed, 4 Jul 2007 07:46:04 -0700, hmm wrote:

> Thanks Sharon.
>
> Please note I am only trying to compress a single file. The /s switch
> appears to be for entire directories.
>
> However, the web site you referred me to gave examples, showing that the
> compact command is meant to be used from the current directory. By changing
> the current directory to the one containing the file, compact worked.
>
> Thanks again.


You're welcome. I realize you were working with one file but the output you
posted referred to a folder. The automatic application of compact is on
the folder level. The examples on that page showed a target to a single
file but included its container in the command line. So just guessed that
including the folder path would make this task easier for you.

Anyhow, I'm glad you got the compact to work.

--
Sharon F
MS-MVP ~ Windows Shell/User
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redemption's SafeMailItem.SaveAs method yields empty files Alexander Bub Microsoft Outlook VBA Programming 4 9th Aug 2006 11:29 AM
compact command Tony WONG Microsoft Access 0 22nd May 2006 03:13 AM
Searching for files through VPN using Windows XP yields no results gordho Windows XP Work Remotely 1 22nd Apr 2005 09:21 PM
Mode command yields "invalid parameter" Fatfreek Microsoft Windows 2000 0 24th Feb 2005 01:02 AM
Compact DB Command James Ham Microsoft Access Macros 0 19th Nov 2003 03:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:03 AM.