PC Review


Reply
Thread Tools Rate Thread

XCOPY exclude -- .CS, but not .CSS

 
 
matt@mailinator.com
Guest
Posts: n/a
 
      31st Jul 2006
hello,

i am using the XCOPY command as part of a deployment script. part of
this script is to screen out .CS files (c# source code). i can do this
by this to my excludes.txt file:

.cs

....however, that also seems to exclude .CSS files (stylesheets), which
i do not want to do.

any suggestions on the syntax to achieve this?


thanks!
matt

 
Reply With Quote
 
 
 
 
Mark V
Guest
Posts: n/a
 
      31st Jul 2006
In alt.msdos.batch.nt wrote:

> hello,
>
> i am using the XCOPY command as part of a deployment script.
> part of this script is to screen out .CS files (c# source code).
> i can do this by this to my excludes.txt file:
>
> .cs
>
> ...however, that also seems to exclude .CSS files (stylesheets),
> which i do not want to do.
>
> any suggestions on the syntax to achieve this?


What OS?

The problem is most likely "Win95TruncatedExtensions"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
Win31FileSystem REG_DWORD 0x0
Win95TruncatedExtensions REG_DWORD 0x0

W2K defaulted to On (1)
http://support.microsoft.com/kb/164351/en-us

 
Reply With Quote
 
 
 
 
Clay Calvert
Guest
Posts: n/a
 
      1st Aug 2006
On Mon, 31 Jul 2006 18:42:40 -0400, Mark V <(E-Mail Removed)>
wrote:

>> .cs
>>
>> ...however, that also seems to exclude .CSS files (stylesheets),
>> which i do not want to do.
>>
>> any suggestions on the syntax to achieve this?

>
>What OS?
>
>The problem is most likely "Win95TruncatedExtensions"
>
>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
> Win31FileSystem REG_DWORD 0x0
> Win95TruncatedExtensions REG_DWORD 0x0


Hmmm. Doesn't that setting only apply to extensions with more than 3
characters?
Clay Calvert
(E-Mail Removed)
Replace "Z" with "L"
 
Reply With Quote
 
Mark V
Guest
Posts: n/a
 
      1st Aug 2006
In alt.msdos.batch.nt Clay Calvert wrote:

> On Mon, 31 Jul 2006 18:42:40 -0400, Mark V
> <(E-Mail Removed)> wrote:
>
>>> .cs
>>>
>>> ...however, that also seems to exclude .CSS files
>>> (stylesheets), which i do not want to do.
>>>
>>> any suggestions on the syntax to achieve this?


>>What OS?
>>
>>The problem is most likely "Win95TruncatedExtensions"

[ ]

> Hmmm. Doesn't that setting only apply to extensions with more
> than 3 characters?


That is what the documentation says... It has been so long (I
started turning Off this horrid default with NT4 at OS
installation) that I cannot be certain now. If the
Win95TruncatedExtensions is On on the OP's system, likely it is not
wanted. If turning it off does resolve it, so much the better.
Something to try...

Otherwise OP, show us some commands and please check the short
filenames there for collisions perhaps? Ensure the excludes file
has no unexpected characters or whitespace within. That's all I
can think of immediately.


 
Reply With Quote
 
David Smith
Guest
Posts: n/a
 
      1st Aug 2006
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hello,
>
> i am using the XCOPY command as part of a deployment script. part of
> this script is to screen out .CS files (c# source code). i can do this
> by this to my excludes.txt file:
>
> .cs
>
> ...however, that also seems to exclude .CSS files (stylesheets), which
> i do not want to do.
>
> any suggestions on the syntax to achieve this?
>
>
> thanks!
> matt
>


I don't know how to do this with XCOPY, but if you have access to the
"Windows Resource Kit Tools",
check out ROBOCOPY.EXE. The switch to use is probably /XF *.cs


 
Reply With Quote
 
Guy
Guest
Posts: n/a
 
      1st Aug 2006
matt wrote:

> i am using the XCOPY command as part of a deployment script. part
> of this script is to screen out .CS files (c# source code). i can
> do this by this to my excludes.txt file:
>
> .cs
>
> ...however, that also seems to exclude .CSS files (stylesheets),
> which i do not want to do.
>
> any suggestions on the syntax to achieve this?
>


Rename the *.cs files to some other extension which you put in the
command /exclude:excludes.txt then rename them back.

If syntax in /exclude:file matches ANY part of source path it will be
excluded.

Or move... or some other option.

--
OpenPGP: id=18795161E22D3905; preference=signencrypt;
url=http://guysalias.batcave.net/pgpkeys.txt
 
Reply With Quote
 
matt@mailinator.com
Guest
Posts: n/a
 
      1st Aug 2006

Mark V wrote:
> What OS?


sorry, i had cross-posted to to win2000.cmdprompt group as well as
yours; that is indeed my OS.

i dont think its the win95 thing; i think its XCOPY's exclude behavior
-- if any part of the exclusion item matches, it excludes it. sorta
dumb. much better to have required wildcard use for that behavior.

ill look into some of the suggestions, thanks.


matt

 
Reply With Quote
 
Mark V
Guest
Posts: n/a
 
      1st Aug 2006
In microsoft.public.win2000.cmdprompt.admin wrote:

>
> Mark V wrote:
>> What OS?

>
> sorry, i had cross-posted to to win2000.cmdprompt group as well
> as yours; that is indeed my OS.


Responded in alt.msdos.batch.nt _only_.
Hint: Use cross-posting and set a single follow-up group where
feasible/needed.
 
Reply With Quote
 
Paul R. Sadowski [MVP]
Guest
Posts: n/a
 
      2nd Aug 2006
Hello, (E-Mail Removed)!
You wrote on 31 Jul 2006 15:21:27 -0700:

m> hello,

m> i am using the XCOPY command as part of a deployment script. part of
m> this script is to screen out .CS files (c# source code). i can do
m> this by this to my excludes.txt file:

m> .cs

..cs\
Works as expected for me on XP excluding .cs but not .css. Don't have access
to a 2K machine right now.

08/02/2006 03:46 PM <DIR> .
08/02/2006 03:46 PM <DIR> ..
08/02/2006 03:46 PM 0 1.cs
08/02/2006 03:46 PM 0 1.css
08/02/2006 03:50 PM 4 ex.txt
3 File(s) 4 bytes

Total Files Listed:
3 File(s) 4 bytes
2 Dir(s) 5,964,414,976 bytes free

C:\users\Sadowski\ttttt [(firecat) 15:51, Wed 08/02/2006] xcopy /p
/exclude:ex.txt *.* i:\
C:1.css (Y/N)? n
C:ex.txt (Y/N)? n
0 File(s) copied

m> ...however, that also seems to exclude .CSS files (stylesheets),
m> which i do not want to do.

m> any suggestions on the syntax to achieve this?


m> thanks!
m> matt

With best regards, Paul R. Sadowski [MVP]. E-mail: (E-Mail Removed)


 
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
XCOPY /exclude file not read =?Utf-8?B?aG1t?= Windows XP Configuration 7 9th Jul 2007 08:38 PM
XCopy Exclude Function NOT Working Danny Kile Windows XP General 2 2nd Nov 2006 08:41 PM
Using Xcopy to backup - Can I exclude some directories? Robin Windows XP Basics 5 8th Jan 2004 12:01 PM
xcopy with "exclude" option klaus Windows XP General 1 2nd Jan 2004 10:42 PM
using /exclude: in xcopy Jim Curran Microsoft Windows 2000 CMD Promt 5 16th Aug 2003 04:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:25 PM.