msconfig

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
daystar87
Posts: 1
Joined: 04 Feb 2014 22:48

msconfig

#1 Post by daystar87 » 04 Feb 2014 22:55

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.

ShadowThief
Expert
Posts: 1167
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: msconfig

#2 Post by ShadowThief » 05 Feb 2014 04:28

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?

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: msconfig

#3 Post by foxidrive » 05 Feb 2014 04:47

The bat to exe program doesn't create files that run in Windows 8.1 at least.

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

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: msconfig

#4 Post by Squashman » 05 Feb 2014 09:40

Weird.
Yesterday someone posted a link to dostips.com in the ComputerHope.com forum. Today just the opposite happened.

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: msconfig

#5 Post by Squashman » 05 Feb 2014 09:44

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.

Post Reply