Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

Sign in to follow this  
LW1

How to Copy Files in my RunOnceEX.cmd

Recommended Posts

Hello, I'm trying to figure out how to copy files for certain apps w/o the need to make a SFX for them.

I have tried;

REG COPY %KEY%\005 /V 3 /D "%systemdrive%\Install\Applications\coverXP\Test.txt" "C:\Program Files\coverXP\"

REG ADD %KEY%\005 /V 3 /D "XCopy %systemdrive%\Install\Applications\coverXP\Test.txt" "C:\Program Files\coverXP\"

REG ADD %KEY%\005 /V 3 /D "Copy /y %systemdrive%\Install\Applications\coverXP\Test.txt" "C:\Program Files\coverXP\"

Any suggestions?

Share this post


Link to post
Share on other sites

Skip the REG COPY %KEY%\005 /V 3 /D bit. Try

md "C:\Program Files\coverXP"

Copy /y "%systemdrive%\Install\Applications\coverXP\Test.txt"

Share this post


Link to post
Share on other sites

I think This Is The Cmd that you need.

REG ADD %KEY%\005 /V 3 /D "cmd.exe /c Copy %systemdrive%\Install\Applications\coverXP\Test.txt" "C:\Program Files\coverXP\"

You Could Also Make A Batch File That Does

The Copy Part and call the batch at the Run1

part.

REG ADD %KEY%\005 /V 3 /D "Your-location-of-cmd\Name-of-the-cmd."

Batch Code

echo off 
cls
mode con: Cols=62 Lines=4
color f7
Copy "%systemdrive%\Install\Applications\coverXP\Test.txt" "C:\Program Files\coverXP\

Share this post


Link to post
Share on other sites

Wow you two were quick, thank you for the suggestions, I am trying them now, will post back the results.

Thanks Again

Share this post


Link to post
Share on other sites

Well neither of these suggestions worked. The 1st however made two new folders on my C:\ 1 is "Copy" & the other is "Y" (both of which are empty)

This is how i entered them;

md "C:\Program Files\DVD Decrypter" Copy /y "%systemdrive%\Install\Applications\DVDDecrypter\Test.txt" /f

REG ADD %KEY%\005 /V 3 /D "cmd.exe /c Copy %systemdrive%\Install\Applications\coverXP\Test.txt" "C:\Program Files\coverXP\" /f

Any other suggestions?

Share this post


Link to post
Share on other sites

This Codes Works Perfect on my Computer.

I dont use C to install Windows.

So It made On My Computer

F:\Install\Applications\coverXP

Than On C It Made

C:\Program Files\coverXP

So give This A Try

echo off 
cls
mode con: Cols=62 Lines=4
color f7
set CD1=%systemdrive%\Install\
set CD2="C:\Program Files\coverXP\"
mkdir "%CD1%Applications\coverXP\"
mkdir %CD2%
ping -n 1 127.0.0.1>nul
Echo Test me > %CD1%Applications\coverXP\Test.txt
date /t >> %CD1%Applications\coverXP\Test.txt
time /t >> %CD1%Applications\coverXP\Test.txt
Copy %CD1%Applications\coverXP\Test.txt %CD2%
ping -n 1 127.0.0.1>nul
%CD2%Test.txt

Share this post


Link to post
Share on other sites

Change it to this and it should work for you

REG ADD %KEY%\005 /V 3 /D "cmd.exe /c Copy \"%systemdrive%\Install\Applications\coverXP\Test.txt\" \"C:\Program Files\coverXP"\" /f

Hopefully this will work, I grabbed it from a simular copy process I did just last week. The reason for all the extra \ is because of the multiple quotes.

Share this post


Link to post
Share on other sites

Sorry about the mistake. Should be

md "C:\Program Files\coverXP"

Copy /y "%systemdrive%\Install\Applications\coverXP\Test.txt" "C:\Program Files\coverXP"

Share this post


Link to post
Share on other sites

You could try this. create a folder called coverXP in $OEM$\$Pogs and copy the test.txt file in there. The $Progs will be automatically copied to Program Files when windows is installed. Hope this helps

Share this post


Link to post
Share on other sites

Thank you all for your suggestions. B)

I went with gunsmokingman's suggestion as it seems to work best for my UA.

Thank you all again. :thumbup

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...