cmd window not kept open

theobserver

New member
Member
Local time
12:59 AM
Messages
42
Hi all,

i had an incident with a virus.

Now my pc is clean and ok but i have one last (i hope) problem.

when i try to open a cmd window it will open and close at once no matter what i have tried.

I have read the tutorial whixh exist here in sevenforums on how to open cmd but no result.

I did an fsc /scannow just in case but no problem was found.

I am out of ideas.

Can you suggest me something please?
I am not lazy just a heads up or a direction to what i should check it would be great.

Thank you for your time reading this.

Regards,
theobserver.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
GenuineIntel/Intel(r)Core(TM)2 Duo CPU E8400 @ 3.00GHz
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
Motherboard
ASUSTeK Computer INC. Maximus Formula
Memory
4,00 GB
Graphics Card(s)
(1) ATI Radeon HD 3800 Series (2) Windows Live Display Dri
Sound Card
(1) AMD High Definition Audio Device (2) SoundMAX Integrat
Screen Resolution
1280 x 1024 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) KINGSTON SV300S37A120G (2) SAMSUNG SP2504C (3) WDC WD10EADS-00M2B0 (4) Generic STORAGE DEVICE USB Device (5) ST350041 3AS USB Device
Try this command:

cmd /D
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Elitebook 8540p
OS
Windows 7 Pro 32
CPU
Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz
Motherboard
Hewlett-Packard 1521
Memory
4,00 GB (Usable 2,98)
Graphics Card(s)
NVIDIA NVS 5100M
Sound Card
NVIDIA High Definition Audio
Screen Resolution
1600x900
Hard Drives
INTEL SSDSA2CW120G3
Antivirus
F-Secure Internet Security
Browser
IE, Firefox, Opera
Other Info
Sandboxie,
SRP (Software Restriction Policy),
EMET (Enhanced Mitigation Experience Toolkit),
WFC (Windows Firewall Control by BiniSoft),
Malwarebytes Premium
As silly as this sounds, is there another DOS prompt icon somewhere within Windows? I ask because I found one long ago buried somewhere. I copy'd it to my working folder, renamed aaDOSCMD[Admin] so I see it quickly, I'm reminded to right-click and run as administrator, and 'cause I assigned a directory in the Start in section -- it sits in the assjgned directory awaiting orders. By trying a different DOS icon, we can rule out or rule in - that the original icon is the only faulty one.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Antec desktop; Acer Aspire laptops
OS
Windows 7 Professional 64-bit
CPU
Desktop i5; Acers i5 & i7
Memory
desktop 16GB; 1 Acer 8GB & 1 Acer 16GB
Hard Drives
1TB split into 2 equal partitions [OS and data] usable by RJS
Internet Speed
AT&T DSL
Browser
FF, GChrome, msIE
Other Info
Windows 7 Firewall, Emsisoft AM/AV, MSE [scan-only], SpywareBlaster, Ruiware/BillP combine

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Bruce ... somewhere in his 40's
OS
Windows 7 Ultimate 32bit SP1
CPU
Intel(R) Core(TM)2 Quad CPU @ 2.40GHz, 2400 MHz
Motherboard
INTEL/D975XBX2
Memory
4 GB
Graphics Card(s)
ATI Radeon HD 2600 Pro
Monitor(s) Displays
Samsung SyncMaster 914v
Screen Resolution
1280 x 1024
Hard Drives
2/500GB each ... ST3500630AS ATA Device.
One is not connected
PSU
Rocketfish 700 W
Case
G.Skill Gigabyte Chassis
Keyboard
Standard PS/2 Keyboard
Mouse
Microsoft PS/2 Mouse
Internet Speed
DSL
Antivirus
Avira Internet Security
Browser
IE 11
Other Info
ATI HDMI Audio
Thank you all for your suggestion.

Tookeri's answer worked like a charm so i have not yet tied the others.

Regards,
theobserver
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
GenuineIntel/Intel(r)Core(TM)2 Duo CPU E8400 @ 3.00GHz
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
Motherboard
ASUSTeK Computer INC. Maximus Formula
Memory
4,00 GB
Graphics Card(s)
(1) ATI Radeon HD 3800 Series (2) Windows Live Display Dri
Sound Card
(1) AMD High Definition Audio Device (2) SoundMAX Integrat
Screen Resolution
1280 x 1024 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) KINGSTON SV300S37A120G (2) SAMSUNG SP2504C (3) WDC WD10EADS-00M2B0 (4) Generic STORAGE DEVICE USB Device (5) ST350041 3AS USB Device
Tookeri's answer worked like a charm so i have not yet tied the others
Then it might still be malware related or possible left overs or corruption from the infection cleaning process. Run these commands from a cmd window to find out:

reg query "HKCU\Software\Microsoft\Command Processor" /v AutoRun
reg query "HKLM\Software\Microsoft\Command Processor" /v AutoRun

It will show the AutoRun commands for when a cmd window is started. The commands/programs specified here will be executed every time you open a cmd window. But when you add the /D parameter the AutoRun commands are ignored.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Elitebook 8540p
OS
Windows 7 Pro 32
CPU
Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz
Motherboard
Hewlett-Packard 1521
Memory
4,00 GB (Usable 2,98)
Graphics Card(s)
NVIDIA NVS 5100M
Sound Card
NVIDIA High Definition Audio
Screen Resolution
1600x900
Hard Drives
INTEL SSDSA2CW120G3
Antivirus
F-Secure Internet Security
Browser
IE, Firefox, Opera
Other Info
Sandboxie,
SRP (Software Restriction Policy),
EMET (Enhanced Mitigation Experience Toolkit),
WFC (Windows Firewall Control by BiniSoft),
Malwarebytes Premium
Please help me because I'm lost.

How does one do this if the cmd window won't stay open.

From post #1

I did an fsc /scannow just in case but no problem was found.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
how does one do this if the cmd window won't stay open.

PowerShell, Command.com.

Or through some script: Batch file, PowerShell script, VBScript script, etc.

You name it.
 
Last edited:

My Computer

Computer type
PC/Desktop
OS
Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
I borrowed very heavily from two experts, one here, one over in another forum.
I saved their work, using a text editor, as RegRun.bat:

rem BATchfile...added to & edited by rjs
regedit /e d:\logs\RegRunsUser.txt "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run"
regedit /e d:\logs\RegRunsEtal.txt "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run"
regedit /e d:\logs\RegRunOnceEx.txt "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnceEx-"
regedit /e d:\logs\RegServices.txt "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices-"
reg query "HKCU\Software\Microsoft\Command Processor" /v AutoRun >d:\logs\RegRunAutoRun1.txt
reg query "HKLM\Software\Microsoft\Command Processor" /v AutoRun >d:\logs\RegRunAutoRun2.txt
exit

obviously, change, modify, etc. to suit your needs :)
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Antec desktop; Acer Aspire laptops
OS
Windows 7 Professional 64-bit
CPU
Desktop i5; Acers i5 & i7
Memory
desktop 16GB; 1 Acer 8GB & 1 Acer 16GB
Hard Drives
1TB split into 2 equal partitions [OS and data] usable by RJS
Internet Speed
AT&T DSL
Browser
FF, GChrome, msIE
Other Info
Windows 7 Firewall, Emsisoft AM/AV, MSE [scan-only], SpywareBlaster, Ruiware/BillP combine
Please help me because I'm lost.

How does one do this if the cmd window won't stay open.

From post #1

I did an fsc /scannow just in case but no problem was found.

The answer is right here

also thank you all for your answers.

It seems that my windows are corrupted but i am in good way to fix them.Right now windows cannot install windows updates and this is an idication of corruption.

I will be back if i get stuck or with more info on what will happen in case that someone else have similar problems.

Thank you for your time.
theobserver
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
GenuineIntel/Intel(r)Core(TM)2 Duo CPU E8400 @ 3.00GHz
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
Motherboard
ASUSTeK Computer INC. Maximus Formula
Memory
4,00 GB
Graphics Card(s)
(1) ATI Radeon HD 3800 Series (2) Windows Live Display Dri
Sound Card
(1) AMD High Definition Audio Device (2) SoundMAX Integrat
Screen Resolution
1280 x 1024 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) KINGSTON SV300S37A120G (2) SAMSUNG SP2504C (3) WDC WD10EADS-00M2B0 (4) Generic STORAGE DEVICE USB Device (5) ST350041 3AS USB Device
Back
Top