Jump to content

Copy File after installation, then open an .exe


Recommended Posts


I have that in $OEM$ folder

As far as i'm aware this worked. I'm just a bit stupid, i didn't add a command line to tell it to run an exe DOH!

cmdow @ /HID
@echo off

FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%i:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

ECHO.
ECHO blabla
DEL "%systemroot%\system32\thedllfile.dll"
COPY "%CDROM%\thedllfile.dll" "%systemroot%\system32\"

EXIT

Edited by reyna12
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...