Jump to content

Copy Pictures


Recommended Posts


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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

@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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 2 weeks later...

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