- Administrator X Commands
- Mengatasi Administrator X Windows System32 Cmd Exe
- How To Fix Administrator X Windows System32 Cmd Exe
Remove Windows accounts or change PC administrator. Administrator:x: windows system32 cmd.exe Saat Mau. CMD WINDOW IN FEW. I have an HP Mini laptop with Windows XP that when every time I start it, it runs c: WINDOWS system32 cmd.exe. How can I stop this from running on st.
I am trying to invoke one executable by putting following line on command prompt. (I know I can directly invoke the exe but let's just say I have no other way to do this due to some restriction)
itself It is successfully run. /C
is parameter to cmd.exe
. But when I do this
Gives me error
Any idea why? And how can I solve this problem? I have to use full path of cmd.exe.
Ganesh SatputeGanesh Satpute5 Answers
Try this instead:
For example:
These work without any problem and both of them output 'Hello World'
SazidSazidAs stated by Stephan, the correct way of writing it is some of the following options
The question is Why 'cmd /c' .... works?
It works for the way the parser is interpreting the line.
When the line is readed and parsed, 'cmd /c'
is converted to
So it is executed as
This substitution can be easily tested
MC NDMC NDlooks for a file named C:WindowsSystem32cmd.exe /C
.
Have you ever seen a file with the extension .exe /c
?
Correct format is:
StephanStephanRegarding the additional question of why the extra quotes are needed: this is described in the help returned by cmd /?
, specifically
If /C or /K is specified, then the remainder of the command line after the switch is processed as a command line, where the following logic is used to process quote (') characters:
So, if the first (non-whitespace) character of the command is a quote, you need an extra pair of quotes around the entire command.
Additional note: combining MC ND's answer with mine, the first command line in the question is being interpreted like this: we start with
which becomes
due to the rule that replaces cmd
->%ComSpec%
combined with the bug/feature that discards the extra quote mark; this then becomes
because of the rule that removes the first and last quote marks when processing /C
.
The Win32 file system rules discard the extra backslash, so the executable launched is
and the executable is presumably ignoring the missing close-quote in its argument.
Harry JohnstonHarry JohnstonStrange it seems :/
This works. Don't know why. May be the double quotes before and after 'C:Program FilesABCxyz.exe' -register='abc'
are required. Wish if someone will explain that.
Not the answer you're looking for? Browse other questions tagged windowscommand-linecmd or ask your own question.
I am installing W7 Ent on an LG R580.
I am working with a valid ISO (installs perfect on other systems).
During the installation, before the installation window, the process hangs, and I get a black, cmd.exe screen with the following:
My keyboard at that time only prints capital letters with '^' before each.
Only thing that I am able to do is reboot.
In the bios, I tried to disable USB Legacy ( thinking the problem is with my DVD ) - did not help.
2 Answers
ale^X in the terminal usually means that the control key is being held. x: is the ramdrive that the installation OS is being loaded to, so somthing is definitely off if you are seeing prompts to it.
Try a memory scan with the MS RAM diagnostic tool on the windows disk, and make sure win7 likes your ram (I've had a few boxes that had install issues until I replaced the ram; Win7 seems more picky about ram sticks that other OSs; these all ran vista and ubuntu fine).
Frank Thomas