LW1 Posted December 31, 2004 Share Posted December 31, 2004 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? Link to comment Share on other sites More sharing options...
ic0dk0c00 Posted December 31, 2004 Share Posted December 31, 2004 Skip the REG COPY %KEY%\005 /V 3 /D bit. Trymd "C:\Program Files\coverXP"Copy /y "%systemdrive%\Install\Applications\coverXP\Test.txt" Link to comment Share on other sites More sharing options...
gunsmokingman Posted December 31, 2004 Share Posted December 31, 2004 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 Codeecho off cls mode con: Cols=62 Lines=4color f7Copy "%systemdrive%\Install\Applications\coverXP\Test.txt" "C:\Program Files\coverXP\ Link to comment Share on other sites More sharing options...
LW1 Posted December 31, 2004 Author Share Posted December 31, 2004 Wow you two were quick, thank you for the suggestions, I am trying them now, will post back the results.Thanks Again Link to comment Share on other sites More sharing options...
LW1 Posted December 31, 2004 Author Share Posted December 31, 2004 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\" /fAny other suggestions? Link to comment Share on other sites More sharing options...
gunsmokingman Posted January 1, 2005 Share Posted January 1, 2005 This Codes Works Perfect on my Computer.I dont use C to install Windows.So It made On My ComputerF:\Install\Applications\coverXPThan On C It MadeC:\Program Files\coverXPSo give This A Tryecho off cls mode con: Cols=62 Lines=4color f7set CD1=%systemdrive%\Install\set CD2="C:\Program Files\coverXP\"mkdir "%CD1%Applications\coverXP\"mkdir %CD2%ping -n 1 127.0.0.1>nulEcho Test me > %CD1%Applications\coverXP\Test.txtdate /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 Link to comment Share on other sites More sharing options...
Rahbas Posted January 1, 2005 Share Posted January 1, 2005 Change it to this and it should work for youREG ADD %KEY%\005 /V 3 /D "cmd.exe /c Copy \"%systemdrive%\Install\Applications\coverXP\Test.txt\" \"C:\Program Files\coverXP"\" /fHopefully 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. Link to comment Share on other sites More sharing options...
ic0dk0c00 Posted January 1, 2005 Share Posted January 1, 2005 Sorry about the mistake. Should bemd "C:\Program Files\coverXP"Copy /y "%systemdrive%\Install\Applications\coverXP\Test.txt" "C:\Program Files\coverXP" Link to comment Share on other sites More sharing options...
yoz7120 Posted January 1, 2005 Share Posted January 1, 2005 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 Link to comment Share on other sites More sharing options...
LW1 Posted January 2, 2005 Author Share Posted January 2, 2005 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now