• Writing batch command for copying files.
    12 replies, posted
  • Hi, I'm creating a disc which consist of a runnable exe, and I want that when people double click the batch files, it copies 2 dlls over to the installed program folder. I figured out different people have different program folders, example some are C:\ some are D:\, some have Program Files (x86) some do not. How do I specify in the batch file to copy this two dlls (which are inside the CD) to copy to the installed folder of the program?
  • Let them copy the runnable exe with those two dll-files? Another option is to place them in %SYSTEMROOT&/System32, but that won't be fun to uninstall..
  • [QUOTE=Physlithium;17225045]Hi, I'm creating a disc which consist of a runnable exe, and I want that when people double click the batch files, it copies 2 dlls over to the installed program folder. I figured out different people have different program folders, example some are C:\ some are D:\, some have Program Files (x86) some do not. How do I specify in the batch file to copy this two dlls (which are inside the CD) to copy to the installed folder of the program?[/QUOTE] I'd assume you would use the standard copy windows command
  • [QUOTE=Kat of Night;17225712]I'd assume you would use the standard copy windows command[/QUOTE] What do you mean? I wanted to replace DLLs with .bat because computer n00bs wouldn't understand what is "Go to the folder which the program is installed in and replace this two DLLs with those inside."
  • just use something like this and have an exe installer. [url]http://www.jrsoftware.org/isinfo.php[/url]
  • [QUOTE=Physlithium;17225738]What do you mean? I wanted to replace DLLs with .bat because computer n00bs wouldn't understand what is "Go to the folder which the program is installed in and replace this two DLLs with those inside."[/QUOTE] The Windows shell has a utility called copy: [code]copy originalfile destinationfile[/code] so if you had a program.exe you wanted to move into whatever/programs/: [code]copy program.exe whatever\programs\program.exe[/code] EDIT: And obviously, stick that in your batch file with the appropriate file names
  • Is the .exe/.bat the thing that installs the program? [QUOTE=efeX;17234851]whats with the influx of ~pro batch hackers~ lately[/QUOTE] What other type of batch hackers are there?
  • im sorry for my leet hacker comment [editline]03:43AM[/editline] deeply sorry