Abyssmedia.com Forum Index Abyssmedia.com
Abyssmedia Support Forums
 
  FAQ    Search    Memberlist    Usergroups   Register 
  Profile    Log in to check your private messages    Log in 

Error whe including .reg files - the files included are 0kb in size

 
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler
View previous topic :: View next topic  
Author Message
aztekboy



Joined: 10 Aug 2006
Posts: 1

PostPosted: Thu Aug 10, 2006 6:16 pm    Post subject: Reply with quote

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

PostPosted: Sat Aug 26, 2006 8:56 pm    Post subject: Reply with quote

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

PostPosted: Sat Aug 26, 2006 11:22 pm    Post subject: Reply with quote

Please use v2.0.8.5 from http://www.abyssmedia.com/downloads/qbfc-beta.exe
Back to top
Ryan Lamberton
Guest





PostPosted: Mon Aug 28, 2006 8:47 pm    Post subject: Reply with quote

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





PostPosted: Fri Sep 22, 2006 3:43 am    Post subject: Reply with quote

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





PostPosted: Fri Sep 22, 2006 3:54 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2011 phpBB Group