| View previous topic :: View next topic |
| Author |
Message |
aztekboy
Joined: 10 Aug 2006 Posts: 1
|
Posted: Thu Aug 10, 2006 6:16 pm Post subject: |
|
|
hello,
When I compile the bat file and I include a registry key that I want it to copy to a directory the key copies but with 0kb size.
here is the batch file
@echo off
mkdir C:\setup
copy key.reg C:\setup
regedit /s C:\setup\key.reg
as you can see it does insert the key in the registry but it doesn't take effect because its 0kb
am I doing something wrong? When I choose the key in the include window its 7kb but it seems that after compiling it loses the data.
Thanx for all your help
Edited By aztekboy on 1155233990 |
|
| Back to top |
|
 |
|
|
daslick
Joined: 21 May 2006 Posts: 6
|
Posted: Sat Aug 26, 2006 8:56 pm Post subject: |
|
|
| I've had the same problem, with many file types. Copy your code into the clipboard, exit QBFC, open QBFC, then paste the code, attach the files, and recompile. I've had to do this a lot, it seems to be a bug. Just make sure the exe is bug free before you assume that it works. |
|
| Back to top |
|
 |
Oleg Tsheglov Site Admin
Joined: 13 Feb 2004 Posts: 309
|
|
| Back to top |
|
 |
Ryan Lamberton Guest
|
Posted: Mon Aug 28, 2006 8:47 pm Post subject: |
|
|
Can you give an example or correct this bat file to show use of %myfiles%?
copy /y proxy.reg C:\WINDOWS\proxy.reg
reg import C:\WINDOWS\proxy.reg
del C:\WINDOWS\proxy.reg
I am trying to copy proxy.reg from an attached (included) file |
|
| Back to top |
|
 |
Ernie Park Guest
|
Posted: Fri Sep 22, 2006 3:43 am Post subject: |
|
|
I believe you need only the following . . .
start file ************************************
:: Use the line below when you compile
set compile=%myfile%\
:: Use the line below to test before you compile
:: set compile=
reg import %compile%proxy.reg
*************************************** end file
Ernie |
|
| Back to top |
|
 |
Ernie Park Guest
|
Posted: Fri Sep 22, 2006 3:54 am Post subject: |
|
|
This was posted . . .
@echo off
mkdir C:\setup
robocopy /e /eta key.reg C:\setup
regedit /s C:\setup\key.reg
QuickBFC has its own "setup" directory - just use that to avoid the file copy.
As an alternative to the "copy" command, try robocopy.exe (google it)
However, since the copy is really an extra unneeded step, try below.
start file ************************************
:: Use the line below when you compile
set compile=%myfile%\
:: Use the line below to test before you compile
:: set compile=
regedit /s %compile%key.reg
*************************************** end file |
|
| Back to top |
|
 |
|