Jump to content

How to copy Folders from Install CD?


Angelfire48

Recommended Posts

Hi!

I just need to know how I can make nLite copy some Folders to my Desktop during installation. I tried the following runOnceEx, but it didn't work!

@echo off

echo copie de dossiers

echo

COPY "%SOURCE%\Apps\Bureau" "%systemdrive%\Documents and Settings\All Users\Bureau\"

echo.

(Bureau is the word for Desktop in french!)

I also tried the same thing with the XCopy command, but in vain. Notice that I need to copy a whole directory, and not a single file!

plz Help, if u can, and if u want!

Angelfire

Link to comment
Share on other sites


Is %SOURCE% set somewhere else? That looks more like a batch file than something your would put in runonceex. Are you calling the batch file from runonceexe?

xcopy is what you use for directories

Link to comment
Share on other sites

I know that you've allready gotten an alternative solution, but to answer your original question, then use this in nLite's 'Runonce' tab:

@xcopy %source%Apps\Bureau "%allusersprofile%\Bureau\" /eh >nul

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...