Jump to content

Copying Simple Text Files - Help, Please


Recommended Posts

Posted

I've tried to use Forum Searches for this but got nowhere, but this has GOT to be a simple thing to do.....

I have 2 or 3 simple text files and a BAT batch file. I just want to have them copied to certain directories during the nLite installation process. I don't even need to LAUNCH the BAT file... I just want to copy it somewhere where someone can easily find it and launch it manually. Same with the text files. I just want to put them in a specific directory, let's say on the Desktop.

I have a folder on the PC I use to create my nLite ISO images called c:\nLite-Files2Copy. Let's say Ludwig.txt is one of the simple text files in there. How do I use nLite to have that file copied to the Desktop? It it in RunOnce? Or do I put it in the $OEM? Any help is appreciated. Detailed help is even more appreciated.

By the way, I've seen references in forums to RunOnceEx. Is this built into nLite? I haven't found it.


Posted

Tralbry, I think the easiest way is to put all your files into the same folder, nLite-Files2Copy, into the directory where your CD files have been copied. Then place this command into the RunOnce field of the Unattended task:

Xcopy "%Source%nLite-Files2Copy" "%UserProfile%\DeskTop\nLite-Files2Copy" /Q /S /E /H /K /C /Y

This assumes you have defined a user and set it to AutoLogon. You cannot use the $OEM$ folder to place files into a specific user account because the account will not have been created when the $OEM$ folder is processed. You can certainly use the $OEM$ folder to place your nLite-Files2Copy folder into the root directory or other system folders. See this for details of the $OEM$ use. If you want to find out more about the RunOnceEx (not directly available via nLite), see the Unattended Guide link at the top of the formum. Enjoy, John.

  • 10 months later...
Posted

Hey I was looking for this also but I still need some help regarding file copying.

I was wondering is there a way to call the GUI Copying window when copying files or any visual feedback to the user because all i can see with this xcopy function is the window background. It's really long (I'm copying i386 and AMD64 folders from the CD) and I wanted some sort of feedback for the user so he knows the computer has not froze. Also, does xcopy require anything in system32 folder? I see a cmd.exe running but I have no clue if it's actually doing anything.

Thanks!

Last Session.ini

Posted

Hey I was looking for this also but I still need some help regarding file copying.

I was wondering is there a way to call the GUI Copying window when copying files or any visual feedback to the user because all i can see with this xcopy function is the window background. It's really long (I'm copying i386 and AMD64 folders from the CD) and I wanted some sort of feedback for the user so he knows the computer has not froze. Also, does xcopy require anything in system32 folder? I see a cmd.exe running but I have no clue if it's actually doing anything.

Thanks!

esarault, I don't have an answer for you but some information. The cmd.exe is the command prompt running the xcopy (or the cmdow) command. Since I do not know what cmdow @ /HID does, I cannot tell you the result. It may be why you see nothing. Normally I would think your would at least see the xcopy command lines. I run a batch file out of RunOnce and I can see things running, but the xcopy does not give a file by file list. This would probably be very long and undesirable anyway. The xcopy command is well defined, including switches, in Help and Support (Start menu). There is an xcopy.exe file in the System32 folder and I assume it is the xcopy command. I would suggest you just display a message when starting each folder and suggest the user look at the HDD activity and Task Manager for evidence of a running system. I am curious why you are copying these two folders? Enjoy, John.

Posted

I wanted some sort of feedback for the user so he knows the computer has not froze.

The user is supposed to be yourself as nLite is (you agreed when installing it) for personal use only.

Posted

Basically I've got a few computers/servers in the house and it's not always me that's playing around with it. Either my brothers or father are messing around with them and I'm sick of going for the **** CD so I copy those files to avoid putting the Windows CD back in everytime we need to modify something.

cmdow hides that cmd.exe I think :} I'll check it out without that command at the beginning. I was using that because in the RunOnce I usued to run the .exe of Intel Chipset update but I've finally managed to identify the proper drivers and now they are slipstream at the beginning properly so cmdow should be useless now.

I'll keep you guys posted.

Thanks!

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...