I am trying to write a script for my job to launch msconfig.exe. It needs to be in a .exe format though. I made a .bat file that opens it easily with simple command
start msconfig
This works perfectly fine as a .bat file when i use a .bat to .exe converter this command does not work. There are other commands in the script and this is the only one that does not seem to run. I have also tried running it from the file with
%systemroot%System32\msconfig.exe
Again this works in the .bat file but not in the .exe format. Both the .bat file and the .exe file open up the proper cmd.exe and both of them display the same command. However the .exe gives back the error as follows
C:\Windows\System32\msconfig.exe 'C:\Windows\System32\msconfig.exe' is not recognized as an internal or external command, operable program or batch file. Any help on why this might not be running would be much appreciated. The .bat to .exe converter i'm using is at http://www.computerhope.com/issues/ch000435.htm.
msconfig
Moderator: DosItHelp
-
- Expert
- Posts: 1167
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: msconfig
I've never heard of a legitimate batch-to-exe converter. Personally, I find the fact that the help file is completely empty to be incredibly concerning. And why do you need to change the extension, anyway?
Re: msconfig
The bat to exe program doesn't create files that run in Windows 8.1 at least.
Not even this works:
It does work in XP, Vista, Win 7 with this:
Not even this works:
Code: Select all
@echo off
echo notepad
pause
It does work in XP, Vista, Win 7 with this:
Code: Select all
@echo off
start msconfig
pause
Re: msconfig
Weird.
Yesterday someone posted a link to dostips.com in the ComputerHope.com forum. Today just the opposite happened.
Yesterday someone posted a link to dostips.com in the ComputerHope.com forum. Today just the opposite happened.
Re: msconfig
Why does it need to be an exe?
Another option would be to write the script as a VBscript and VBSEdit has a compile to exe option. But you may run into the same issue with that as well.
Another option would be to write the script as a VBscript and VBSEdit has a compile to exe option. But you may run into the same issue with that as well.