[Moderator (Sealeopard): Moved thread from 'Scripts' to 'styarters' forum due to lack of script in body]

Can anyone tell me why this code

copy "c:\*.txt" "h:\" /s (h: is a mapped network drive)

recreates my entire directory from C:\ on H:\?

I have a script that loops through a text file looking for specific extensions and when found copies them to the server. Everything works great except when the script complete I have a HUGE tree on the h:\ drive. The files I wanted to copy are there but also the entire tree (no files, only directories) from drive C:\.

Any ideas?

[ 31. October 2003, 14:58: Message edited by: sealeopard ]
_________________________
Kyle Shaver, MCSE [url=mailto:kyleshaver@cox.net]kyleshaver@cox.net[/url]