We help IT Professionals succeed at work.

I have a batch file I would like to make more Professional.

1,729 Views
Last Modified: 2008-01-09
Below is my batch file I would love to get in EXE or COM. I've tried many bat2exe or com programs but they all mess up the batch program or ignore echo. command (for space) and I believe all of them ignore the pause command completely.... I've also tried IEXPRESS that I found on XP.. that would be great.. but also didn't wait for user to press enter... and can't get it to do what I need.

Any suggestions?

Here is my batch

echo off
cls
title Big Stick Installation
echo.
echo.
echo.
echo.
echo Installing....
echo.
echo.
md c:\BigStick
md c:\BigStick\Backup
copy fix.bat c:\BigStick
copy BigStick.mde c:\BigStick\Backup
copy BigStick.ico c:\BigStick
copy BigStick.mde "C:\Documents and Settings\All Users\Desktop\BigStick.mde"
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo Please refer to the Installation Manual to help guide you through this step.
echo.
echo.
echo.
echo.
echo.
pause
echo.

ACCESSRT.MSI
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
pause
regedit.exe /s urs.reg
cls
echo.
echo.
echo.
echo You will now start your printer install,
echo PLEASE FOLLOW THE PRINTER INSTRUCTIONS IN THE MANUAL.(Steps 1-3)
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo When Windows has finished installing the drivers, you will be
echo returned to this window at which time you will press any key to continue.
echo.
echo.
Pause
cls
echo.
echo.
echo.
echo.
echo Rebooting your computer. This may take up to 2 min. PLEASE DONT PRESS ANY KEY.
echo.
echo.
sd.exe -r -t 01 -f
pause
echo on
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
thank-you to all.

Question for Bill
"In Windows XP, the %~dp0 variable holds the directory that the batch file was started from."
-What about Win2000?
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Commented:
Another option for you is AutoIt. A freeware scripting tool that is reasonably easy to jump into without too much of a learning curve. It also allows you to compile your scripts into an exe once you get them working the way you want. If you have the time or inclination you can also develop some fairly professional looking scripts.
CERTIFIED EXPERT

Commented:
Thank you detroitdr
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.