1.

Solve : install a file (bat, exe, ...)?

Answer»

First hi to all (since i'm new)

Since a week or so i'm learning to program in .bat
and I got hte following QUESTION

how do I instal a file using a batch.

I tried to following code:

@ECHO off
copy "E:\files\batchprogramming\test.bat"
"E:\files"

I want the test file copied (or cutted if possible) to the "files" folder. Can SOMEONE pls tell me how to do that?
Then I want the same file "test.bat" copied in the REGISTRY "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Runonce"
I hope someone can help me with this.

Thanks in advantageHi again,

ok nevermind about the first question about copying files (I found out myself)

but COPIE a .reg file using a batch file seems not to work.
anyone has experience with this? pls help me out.
thanks in advantageDo you just want to copy the .reg file or do you want to set a reg key?

Setting a reg key is possible with the reg [rk] command.
I don´t have experience with it. sorry.

hope this helps
uliI solved the problem after trying and trying and trying many possible things (also with a little bit help of what you said and things i found on the internet) so thanks.

REGEDIT /i /s regis.reg

This was the code I serched for (I = import, S = silence)



Discussion

No Comment Found