Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

FileCopy

- - - - -

  • Please log in to reply
4 replies to this topic

#1
WiLLiE

WiLLiE

    Newbie

  • Member
  • 18 posts
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.


How to remove advertisement from MSFN

#2
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
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.
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#3
WiLLiE

WiLLiE

    Newbie

  • Member
  • 18 posts

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.

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
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
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.
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#5
Wraith

Wraith

    Dr. Nick

  • Member
  • PipPipPipPipPipPip
  • 1,256 posts
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_'
      }
    }
  }

Posted ImagePosted Image
Posted ImagePosted Image
Posted ImagePosted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN