MSFN Forum: FileCopy - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

FileCopy How to copy multiple files at once? Rate Topic: -----

#1 User is offline   WiLLiE 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 27-February 04

  Posted 10 March 2004 - 08:50 AM

Is it possible to copy multiple files at once?

<filecopy source='W:\UnAttended\Personal\QuickLaunch\*.*"' target='%APPDATA%\Microsoft\Internet Explorer\Quick Launch\' />


This attempt failed, and the log says something about wrong syntax.

Is this possible, or do I have to go back using a batfile?

Thanks.


#2 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 10 March 2004 - 08:54 AM

use dircopy.

i believe it would be....
<filecopy source='W:\UnAttended\Personal\QuickLaunch"' target='%APPDATA%\Microsoft\Internet Explorer' />


and you need to rename the source QuickLaunch folder to Quick Launch. :)

Dircopy copies the directory to the new location, files and all.

#3 User is offline   WiLLiE 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 27-February 04

Posted 10 March 2004 - 11:43 AM

Quote

and you need to rename the source QuickLaunch folder to Quick Launch
Maybe.. It depends on XPlode..
I've been copying the files only before my attempt to make it work with XPlode.

Quote

Dircopy copies the directory to the new location, files and all.

Yeah, I'm using Dircopy also.

What if, like in this case, I'm Dircopy'ing over "Quick Launch" to "%APPDATA%\Microsoft\Internet Explorer\".. Will XPlode delete the existing folder BEFORE it copies "Quick Launch" over?

Anyway, if I can't copy a bunch of files with Filecopy, then I think XPlode is missing a "feature". (Which in my case means i have to reorganize my folders, or keep on using batfiles.)

#4 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 10 March 2004 - 12:47 PM

well, FileCopy needs the file to copy, you may want to drop a line to Wraith in the requests or on his bugtracker about adding support for the *.* as he would have to add that to XPlode.

I don't think it will delete the folder as I use it for my quicklaunch and all the default ones are there, and I only copy over 4. Unless they get created when the user is done logging on.

#5 User is offline   Wraith 

  • Dr. Nick
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,256
  • Joined: 01-January 04

Posted 15 March 2004 - 07:29 PM

XPlode 1.0.3 has the following syntax for copying files and directories:

 <copy source='%SOURCEPATH%\I386' target='%SYSTEMDRIVE%\I386' mask='*.ac_'  />
 	 <copy source='%SOURCEPATH%\I386\sp1.cab' target='%SYSTEMDRIVE%\I386\sp1.cab' />
 	 <move source='%SYSTEMDRIVE%\I386\' target='%SYSTEMDRIVE%\I586' />
 	 <move source='%SYSTEMDRIVE%\I586\sp1.cab' target='%SYSTEMDRIVE%\I586\sp2.cab' />
 	 <delete source='%SYSTEMDRIVE%\I586' mask='m*.ac_' />
 	 <delete source='%SYSTEMDRIVE%\I586\sp2.cab' />
 	 <delete source='%SYSTEMDRIVE%\I586' />


As you can see, it will allow specific file masking. (Defaults to *.* if no 'mask' attribute it specified.)
Expect a release soon.

 Execution thread {
    Running item: 'Copying Post-Installation Files' {
      Running command: 'copy' {
        Copying directory: 'H:\I386' -> 'C:\I386'
        File mask: '*.ac_'
        Copying file: 'H:\I386\COURTNEY.AC_' -> 'C:\I386\COURTNEY.AC_'
        Copying file: 'H:\I386\EARL.AC_' -> 'C:\I386\EARL.AC_'
        Copying file: 'H:\I386\IMAADP32.AC_' -> 'C:\I386\IMAADP32.AC_'
        Copying file: 'H:\I386\L3CODECA.AC_' -> 'C:\I386\L3CODECA.AC_'
        Copying file: 'H:\I386\MERLIN.AC_' -> 'C:\I386\MERLIN.AC_'
        Copying file: 'H:\I386\MSADP32.AC_' -> 'C:\I386\MSADP32.AC_'
        Copying file: 'H:\I386\MSAUD32.AC_' -> 'C:\I386\MSAUD32.AC_'
        Copying file: 'H:\I386\MSG711.AC_' -> 'C:\I386\MSG711.AC_'
        Copying file: 'H:\I386\MSG723.AC_' -> 'C:\I386\MSG723.AC_'
        Copying file: 'H:\I386\MSGSM32.AC_' -> 'C:\I386\MSGSM32.AC_'
        Copying file: 'H:\I386\QMARK.AC_' -> 'C:\I386\QMARK.AC_'
        Copying file: 'H:\I386\ROVER.AC_' -> 'C:\I386\ROVER.AC_'
        Copying file: 'H:\I386\SL_ANET.AC_' -> 'C:\I386\SL_ANET.AC_'
        Copying file: 'H:\I386\TSSOFT32.AC_' -> 'C:\I386\TSSOFT32.AC_'
      }
      Running command: 'copy' {
        Copying file: 'H:\I386\sp1.cab' -> 'C:\I386\sp1.cab'
      }
      Running command: 'move' {
        Moving directory: 'C:\I386' -> 'C:\I586'
        File mask: '*.*'
        Moving file: 'C:\I386\COURTNEY.AC_' -> 'C:\I586\COURTNEY.AC_'
        Moving file: 'C:\I386\EARL.AC_' -> 'C:\I586\EARL.AC_'
        Moving file: 'C:\I386\IMAADP32.AC_' -> 'C:\I586\IMAADP32.AC_'
        Moving file: 'C:\I386\L3CODECA.AC_' -> 'C:\I586\L3CODECA.AC_'
        Moving file: 'C:\I386\MERLIN.AC_' -> 'C:\I586\MERLIN.AC_'
        Moving file: 'C:\I386\MSADP32.AC_' -> 'C:\I586\MSADP32.AC_'
        Moving file: 'C:\I386\MSAUD32.AC_' -> 'C:\I586\MSAUD32.AC_'
        Moving file: 'C:\I386\MSG711.AC_' -> 'C:\I586\MSG711.AC_'
        Moving file: 'C:\I386\MSG723.AC_' -> 'C:\I586\MSG723.AC_'
        Moving file: 'C:\I386\MSGSM32.AC_' -> 'C:\I586\MSGSM32.AC_'
        Moving file: 'C:\I386\QMARK.AC_' -> 'C:\I586\QMARK.AC_'
        Moving file: 'C:\I386\ROVER.AC_' -> 'C:\I586\ROVER.AC_'
        Moving file: 'C:\I386\SL_ANET.AC_' -> 'C:\I586\SL_ANET.AC_'
        Moving file: 'C:\I386\TSSOFT32.AC_' -> 'C:\I586\TSSOFT32.AC_'
        Moving file: 'C:\I386\sp1.cab' -> 'C:\I586\sp1.cab'
      }
      Running command: 'move' {
        Moving file: 'C:\I586\sp1.cab' -> 'C:\I586\sp2.cab'
      }
      Running command: 'delete' {
        Deleting directory: 'C:\I586'
        File mask: 'm*.ac_'
        Deleting file: 'C:\I586\MERLIN.AC_'
        Deleting file: 'C:\I586\MSADP32.AC_'
        Deleting file: 'C:\I586\MSAUD32.AC_'
        Deleting file: 'C:\I586\MSG711.AC_'
        Deleting file: 'C:\I586\MSG723.AC_'
        Deleting file: 'C:\I586\MSGSM32.AC_'
      }
      Running command: 'delete' {
        Deleting file: 'C:\I586\sp2.cab'
      }
      Running command: 'delete' {
        Deleting directory: 'C:\I586'
        File mask: '*.*'
        Deleting file: 'C:\I586\COURTNEY.AC_'
        Deleting file: 'C:\I586\EARL.AC_'
        Deleting file: 'C:\I586\IMAADP32.AC_'
        Deleting file: 'C:\I586\L3CODECA.AC_'
        Deleting file: 'C:\I586\QMARK.AC_'
        Deleting file: 'C:\I586\ROVER.AC_'
        Deleting file: 'C:\I586\SL_ANET.AC_'
        Deleting file: 'C:\I586\TSSOFT32.AC_'
      }
    }
  }


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy