Jump to content

Recommended Posts

Posted

Does anyone know how to copy all of my picture into the "My Documents\My Pictures" folder so they're there when the install is done?

Any help would be appreciated.


Posted
yeah use the $OEM$ folder structure then use $Docs\Your username\My Documents\My Pictures :)

(if anyone knows a more optimal way please correct me ;))

it's doesn't work ... in fact, I have already test this but when my batch creates users, it creates a folder MyUserName.xxxx ... finally I use $1 folder and a batch to copy files to other folders ....

Posted

What I was wondering is if I could do it with it a batch file or with RunOnceEx as once I'm auto-logged on the folder "C:\Documents and Settings\Dan\My Documents\My Pictures" will have already been created.

Posted

It's making another directory MyUserName.xxxx because (I think) you are creating the directory structure before the install makes them, therefor it recognises that folder already exists and makes that obscure folder instead.

I am having this problem and doing anything like that from a cmd/bat file run from the GuiRunOnce section of my winnt.sif file.

Well, that's my plan anyway lol

Chris

Posted (edited)

In your $OEM$ make directory called $1 , and make another MyDocs for example. Just copy the content in the MyDocs.

Creates a batch file contains :

xcopy "%SystemDrive%\MyDocs" "%UserProfile\My Documents\" /s
rd /s /q "%SystemDrive%\MyDocs"

Runs this batch in your RunOnceEx ....

It's a solution ... other exist too ...

edit: okay supertoast

Edited by sonic
Posted (edited)

@Supertoast

yeah about making an useraccount.xxx issue

@Timos

needs test........thanx I'll (or one of us) give it a shot

@Sonic

thanx........seems cool

but just to learn something........what if I make cmd file called copytodoc.cmd and then put in cmdlines instead of RunExOnce.cmd!

BTW, YOU FOR GOT THE (%) AFTER %USERPROFILE ! :P

like this:

cmdlines.cmd

[COMMANDS]
"useraccounts.cmd"
"RunOnceEx.cmd"
"copytodoc.cmd"

copytodoc.cmd

xcopy "%SystemDrive%\MyDocs" "%UserProfile%\My Documents\" /s
rd /s /q "%SystemDrive%\MyDocs"

any evil will happen?! I don't want to miss up my UAXPCD! :P:) and I'de like to learn about the cmdlines.cmd and putting cmd files in it

Edited by Wesmosis
Posted

@Wesmosis:

You should run in RunOnceEx because cmdlines runs @ T-12 ... no user logged yet ... you must login with the user (and with the good My Documents).

note: Each user has each My Documents ...

Posted (edited)

Why Not Use SFX ?

Later Edit :

Use SFX Options - Modes - Hide All , Overwrite All and Path Would Be : C:\Documents and Settings\Administrator\Desktop\Pictures

This Is How i Do .

Edited by BlueMe
  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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