Jump to content

Recommended Posts

Posted

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?


Posted

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\

Posted

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

Thanks Again

Posted

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?

Posted

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

Posted

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.

Posted

Sorry about the mistake. Should be

md "C:\Program Files\coverXP"

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

Posted

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

Posted

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

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