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
Error whe including .reg files - the files included are 0kb in size
-
- Site Admin
- Posts: 307
- Joined: Fri Feb 13, 2004 5:55 pm
- Contact:
Please use v2.0.8.5 from https://www.abyssmedia.com/downloads/qbfc-beta.exe
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
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
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
@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