Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

.bat help


  • Please log in to reply
No replies to this topic

#1 Vaine

Vaine

  • Members
  • 133 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Somewhere in NewYork
  • Local time:01:52 PM

Posted 14 January 2009 - 04:25 PM

I made a BARTPE tool for UBCD for Windows and I made an update code for Combofix. I wanted to know how to make it update to Removable Disk E:/PC Repair Programs and not to the directory of UBCD and what other stuff is unnecessary to have. I do about 10 file updates a week and the get_update bat is better than searching for the files on the web

[codebox]:: ComboFix Update CMD

@echo off
setlocal ENABLEEXTENSIONS

:: rem Change current drive and path to where the CMD script is located
%~d0
cd /D %~dp0

:: rem Set URL/file to download and filename to save it as
SET GETFILE=http://download.bleepingcomputer.com/sUBs/ComboFix.exe
SET SAVEFILE=ComboFix.exe

:: rem Locate the UBCD4Win Root directory
:FindPeDir
if exist bartpe.exe goto SetUtil
cd ..
goto FindPeDir

:: rem Set the path to the download.exe and unzip.exe files
:SetUtil
SET UTILPATH=%CD%\oem1\PEUtils
cd /D %~dp0
goto GetUpdate

:GetUpdate
%UTILPATH%\download.exe %GETFILE% /timeout:20 /update /output:%~dp0\%SAVEFILE% /overwrite

:END
endlocal
[/codebox]

BC AdBot (Login to Remove)

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users