paddy
(Fresh Scripter)
2003-03-19 12:06 AM
Switches

Can someone give me a switch for copying all files and subdirectories in a folder?

NTDOCAdministrator
(KiX Master)
2003-03-19 12:11 AM
Re: Switches

XCOPY /E
Copies directories and subdirectories, including empty ones.


Radimus
(KiX Supporter)
2003-03-19 12:12 AM
Re: Switches

for what version of kix or windows?

Kdyer
(KiX Supporter)
2003-03-18 02:55 PM
Re: Switches

While copy with KiX works with files and folders. Only version 4.21 is reported to work recursively.

Kent

[ 18. March 2003, 14:56: Message edited by: kdyer ]


paddy
(Fresh Scripter)
2003-03-18 04:15 PM
Re: Switches

copying files and folders from win98 with kix4.21 but it only copies the sub folders but not what is in them. am using /h /s but it is not working.
code:
 $copyOutlookS = J:+"\@wksta\Outlook"
$copyOutlookC = c:\Outlook\
copy $copyOutlookC+"\*.*" $copyOutlookS /h /s



paddy
(Fresh Scripter)
2003-03-18 06:00 PM
Re: Switches

Yes...it only copies the root directory bt does not copy what is in any of the folders in the root.

C:\Windows\Favourites\Media

It copies what is in:

C:\Windows\Favorites\

including the Media folder but not what is in that folder...any solutions?


paddy
(Fresh Scripter)
2003-03-18 06:08 PM
Re: Switches

Never mind...i realised i only had version 4.20.

Thanks all.


LonkeroAdministrator
(KiX Master Guru)
2003-03-18 10:21 PM
Re: Switches

yeah!
I got amazed when you said it didn't work but now I understand it fully as it's expected.

cheers