Over 1 million tech questions and answers.

Solved: VBA Macro that opens the Command Prompt and executes a command

Q: Solved: VBA Macro that opens the Command Prompt and executes a command

I am writing a VBA macro in Excel and have hit a wall. I am trying to get excel to open a command prompt and make it execute a command. The problem I am having is if I try to do anything but open another program, it throws an error back at me.

I can open the command prompt using:
Call Shell("cmd.exe" & dosCmd, vbNormalFocus)
I can also open Acrobat which is the program I need using:
Shell "C:\program files\adobe\acrobat 9.0\acrobat\acrobat.exe", vbNormalFocus
However if I simply wanted to open a PDF file, I have the code to that without opening a command prompt.

I need to open the PDF document on a specific page, and to my knowledge the only way to do this (apart from manually) is to use the command prompt. However I have no idea how to get VBA to put the command in the command prompt, hit enter and then close the prompt.

There are 2 commands that need to be executed in DOS (I'm not sure if there is a way to combine the commands)

They are:

cd c:\program files\adobe\acrobat 9.0\acrobat

start acrobat.exe /A "page=10=Open Actions" "M:\Full Scores\allegro.pdf
These open the pdf document called allegro on page 10.

I am completely stuck. Out of ideas. I've searched the length and breadth of the internet and can find nothing to point me in the right direction. So I was hoping one of you fine people could. Thank you so much, James

Preferred Solution: Solved: VBA Macro that opens the Command Prompt and executes a command

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: Solved: VBA Macro that opens the Command Prompt and executes a command

Read other 8 answers

Hey guys.

Ive been trying to figure out how to make a command prompt run a command line as soon as the box comes up.

I need this to happen all from one command line. A command prompt needs to open with "echo hi" being ran as a command line.

Any ideas?

A:Make a command prompt run a command as soon as it opens?

Hello Fmjc001,

You could create a BAT file for this. Just type in the commands into a TXT file, then rename the file extension to BAT. When you run the BAT file it will run the commands in a command prompt automatically.

Hope this helps,

Read other 11 answers

Hello everyone

Recently a problem has arisen with my system.

Previously I have been doing work that requires me to unplug my network connection and I need to check my IP address each time I plug it in again. I guess it's not set for static IP.
Anyways to do this I usually go into Command Prompt and type 'ipconfig'

Now however I just get "'ipconfig' is not recognized as an internal or external command, operable program or batch file".

The directory is the same as its always been, I can change it but it doesn't seem to matter what it is.

I've checked many other posts and is there something possibly wrong with my PATH variable? I used the command 'echo %PATH%' and it works, the list it gives is very garbled however.

I'm not sure what might have made this problem arise, but I would greatly appreciate any help.


A:Solved: Command Prompt Error - 'command' is not recognized...

Read other 15 answers

I have Windows XP on my computer, and when I try to ping something through the command prompt (command.com), this shows up:

The NTVDM CPU has encountered an illegal instruction.
CS:0f23 IP:010c OP:c4 f6 06 a9 02 Choose 'Close' to terminate the application

Running tracert also has the same problem.
If I try running ping or tracert through cmd.exe, it stalls and doesn't do anything. I have to close the program because it doesn't respond.
I can use ipconfig in both cmd.exe and command.com. Do I have a virus on my computer, or is there a way to repair the command prompt? I've attached a HijackThis log file.

Logfile of HijackThis v1.99.1
Scan saved at 6:47:15 PM, on 1/18/2007
Platform: Windows XP SP2 (WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180)

Running processes:
C:\Program Files\Cisco Systems\VPN Client\cvpnd.exe
C:\Program Files\Common Files\McAfee\HackerWatch\HWAPI.exe
c:\program files\common files\mcafee\mna\mcnasvc.exe
C:\PROGRA~1\McAfee\... Read more

A:Solved: MS-DOS Command Prompt Problem (cmd.exe, command.com)

Read other 16 answers

Okay sir. Just noticed this recently. My icons in the task bar will disappear and reappear quickly and I don't suspect malware is the problem. What could be the problem in this?

A:Command prompt opens and closes.

this sometimes happens when there is a background process running that uses a lot of system resources. For instance, a windows update.
It's usually not something you can do anything about, except for upgrading your system to higher specs, such as using an SSD instead of a regular hard drive.

Read other 1 answers

Hello sirs and good evening (just based the time in our country). I would like to request help from this website in removing malwares. My problem is stated in the "Current issues and symptoms" box but I will restate in more detailed way. As I was saying, the user is just using facebook to fancy his time and then command prompt popped up with no contents available to show just plain black background. Now the problem is I already searched things about the issue until I reached into this website with the similar problem. I suspect that malware is behind all of this and this problem of mine baffled me. Now that I read the guides that was provided by the administrator upon my joining this community, I would like to get some help. Thank you in advance for helping.

Read other answers

I had already reformatted the computer, and it is still doing this. I read that it may be an indication of a virus so I'd like to check it out.

Scan result of Farbar Recovery Scan Tool (FRST) (x64) Version:11-08-2015 02
Ran by Gage (administrator) on GAGESPC (11-08-2015 14:04:11)
Running from C:\Users\Gage\Downloads
Loaded Profiles: Gage (Available Profiles: Gage)
Platform: Windows 8.1 (X64) Language: English (United States)
Internet Explorer Version 11 (Default browser: Chrome)
Boot Mode: Normal
Tutorial for Farbar Recovery Scan Tool: http://www.geekstogo.com/forum/topic/335081-frst-tutorial-how-to-use-farbar-recovery-scan-tool/

==================== Processes (Whitelisted) =================

(If an entry is included in the fixlist, the process will be closed. The file will not be moved.)

(HP) C:\Program Files (x86)\HP SimplePass\TrueSuiteService.exe
(AMD) C:\Windows\System32\atiesrxx.exe
(AMD) C:\Windows\System32\atieclxx.exe
(IDT, Inc.) C:\Program Files\IDT\WDM\stacsv64.exe
(Hewlett-Packard Company) C:\Windows\System32\hpservice.exe
(Synaptics Incorporated) C:\Program Files\Synaptics\SynTP\SynTPEnh.exe
(Advanced Micro Devices, Inc.) C:\Program Files\ATI Technologies\ATI.ACE\Fuel\Fuel.Service.exe
(Apple Inc.) C:\Program Files\Bonjour\mDNSResponder.exe
(Microsoft Corporation) C:\Windows\System32\dasHost.exe
(Realsil Microelectronics Inc.) C:\Program Files (x86)\Realtek\Realtek PCIE Card Reader\RIconMan.exe
(Malwarebytes Corporation) C:\Program Files (x86)\Malwar... Read more

A:Command prompt opens and closes randomly

===================== Drivers (Whitelisted) ==========================

(If an entry is included in the fixlist, it will be removed from the registry. The file will not be moved unless listed separately.)

S2 AODDriver4.2.0; C:\Program Files\ATI Technologies\ATI.ACE\Fuel\amd64\AODDriver2.sys [59648 2013-09-20] (Advanced Micro Devices)
R3 AtiHDAudioService; C:\Windows\system32\drivers\AtihdW86.sys [91648 2012-08-21] (Advanced Micro Devices)
R1 BHDrvx64; C:\Program Files (x86)\Norton Internet Security\NortonData\\Definitions\BASHDefs\20150728.001\BHDrvx64.sys [1650936 2015-07-23] (Symantec Corporation)
R3 ccSet_NIS; C:\Windows\system32\drivers\NISx64\1605020.00F\ccSetx64.sys [173808 2015-07-10] (Symantec Corporation)
R3 eeCtrl; C:\Program Files (x86)\Common Files\Symantec Shared\EENGINE\eeCtrl64.sys [498512 2015-08-03] (Symantec Corporation)
R3 EraserUtilRebootDrv; C:\Program Files (x86)\Common Files\Symantec Shared\EENGINE\EraserUtilRebootDrv.sys [153936 2015-08-03] (Symantec Corporation)
R3 IDSVia64; C:\Program Files (x86)\Norton Internet Security\NortonData\\Definitions\IPSDefs\20150809.001\IDSvia64.sys [692984 2015-08-07] (Symantec Corporation)
R3 MBAMProtector; C:\WINDOWS\system32\drivers\mbam.sys [25816 2015-06-18] (Malwarebytes Corporation)
R3 MBAMSwissArmy; C:\WINDOWS\system32\drivers\MBAMSwissArmy.sys [113880 2015-08-11] (Malwarebytes Corporation)
R3 MBAMWebAccessControl; C:\WINDOWS\system32\drivers\mwac.sys [64216 2015-06-18] (Malwarebytes Corporatio... Read more

Read other 28 answers

Command Prompt opens and closes on startup and browser internet explorer is opening  in startup 

Read other answers

Whenever I run defrag this happens:

It goes away after about 0.1 second and I can't read what it says (it goes by to fast)

Why, and how do I fix?

A:Defrag just opens up a command prompt then closes

How are you starting defrag?

This tutorial may help?
Optimize Drives - Defrag HDD and TRIM SSD in Windows 8

Read other 8 answers

I deleted a file and I believe it was the wrong file and cannot remember what it was nor where it was. Now a DOS window opens on start-up. It says file not found.
Then goes to the system32 folder.

If I close the DOS window before the start-up finishes, then OS does not complete starting up. If I wait until start-up finishes, then the window just stays open and the system works normally, I can close window without errors.

How can I find out what is trying to open and causing this? Sure would like to reinstall whatever is going wrong.


A:Command Prompt window opens on startup

Hi and Welcome to TSF!

Please boot into Safe Mode with Command Prompt and try SFC /scannow:

Please follow this guide here to perform a System File Check of Windows:

How to run SFC /scannow from Command Prompt | Tech Support Forum

Read other 10 answers

Every time I try to open a folder by double clicking, the Command Prompt shows up with th location of the folder in it. When I right click it the first option is "Command Prompt" and it is bold. How do I change this to open so i can simply open my folders by double clicking them?


I tried Doug Knox's File Folder Association registry thing and that didn't work

A:Double Click folders, Command Prompt opens?

Hello and welcome to TSF

I am not sure which one you mean by Doug Knox, but have you tried this one:

If the above doesnt work try this...

Click Start, Run copy and paste regsvr32 /i shell32.dll into the text box and press Ok.

Read other 1 answers

Hi guys! I'm having this issue recently where the command prompt randomly opens and closes too quick for me to see what's in it. I ran virus searches with multiple Antivirus (Windows Defender, ESET Online Scanner, Avast, Bitdefender, MalwareBytes, MalwareBytes Anti-Rootkit, Super AntiSpyware, Adw Cleaner, Rogue Killer and rKill), and, while they found some stuff, the command prompt thing still persists. I'm kind of paranoid right now, and don't know if this is a virus' doing or what. Thanks in advance!

Read other answers

dear sir,
till yesterday. it was ok. since today morning, this problem appears. when i double click a folder to open it, it asks for permission to open with windows command processor. if i click on yes, a command prompt appears and commands keep on scrolling. if i right click on the folder, then the first option that comes is "take ownership". i am using microsoft security essentials. i have scanned with that as well as malwarebytes antimalware but the problem persists.

A:double clicking a folder opens a command prompt

Can you remember if you did anything just before the problem started? Download/install a new program? Install Windows Updates? Change any computer settings? Go to a new website you've never visited before?

You can try using a restore point that goes back to before the problem started. Be aware that a system restore will also uninstall programs that were installed after the date of the selected restore point.

System Restore

Read other 3 answers

I have a utility I run on some customers' machines that requires being run from safe mode. I already have the utility automated via batch, and would like to just run one SFX app and move on to the next machine, knowing that this app will reboot the machine into safe mode w/ command prompt, run my utility, and reboot the machine back into normal mode (the standard shutdown -r -t 01 is easy enough, but there are no modal options!). Also, if this can be done, how would I then make sure that the current user logs in automatically, rather than have safe mode stop at the log-in screen?

The utility in question is a simple "Common Software Package" which includes some software such as Reader and Flash. Some of the software included cannot be installed while an antivirus is running (at least any that have tamper-protection) due to the registry editing involved, but are completely positive in nature (one such software package simply checks the current registry vs. a backup it takes on each shutdown to look for any discrepancies, adjusted for installed software, of course). The packages do not require Windows Installer service to be running, so I have found SM w/ CP to be the best option.

Any help with this would be appreciated.

Read other answers

In Windows 7, whenever I try to select "Open file location" from the right click menu of a shortcut, instead of opening the folder in explorer, it opens a command prompt window with the directory set to file location instead. The same thing happens when I select "Show in Windows Explorer" in iTunes.

How do I fix this?

A:[Solved]"Open file location" opens command prompt instead

Hi, sorry for the delay, we down unders are having problems accessing the site. Both Vista and seven have the option to "open command prompt here" it looks like this has been associated with the context menu "open file location" very unusual. I wonder if Bonjour has anything to do with this (comes with I Tunes) you might prevent it from startup (not needed) under Msconfig uncheck it... is known as Responder has some letters before it like Mdns Responder.exe (or similar thats the one).

I would like to see the contents of this registry key (perfectly safe for you to do) open a Command prompt as administrator (start ,all programs, accessories right click command prompt select "run as administrator" at the prompt type:-

regedit /e C:\Note.txt "HKEY_CLASSES_ROOT\Directory\shell" & start notepad C:\note.txt
Press enter.

Copy the notepad contents here.

Read other 4 answers

I have faced this issue
when i go to start -> programs -> control panel  it opens command prompt
when i go to start -> programs -> My computer  it opens command prompt
When i go to explorer -> double click folder -> it opens command prompt. 
help needed to solve issue

A:Windows 7 Double Click on Folder opens Command prompt


Download www.winhelponline.com/temp/w7-folder-reg.zip
Unzip and run the REG file. This fixes folder association setting in the registry, which currently is messed up.Ramesh Srinivasan | The Winhelponline Blog
Microsoft MVP, Windows Desktop Experience

Read other 11 answers

I just finished [finally] updating my copy of Windows 8 Pro to Windows 8.1 Pro (manually downloaded the ISO from Microsoft and did an in-place update within the existing copy of W8). After I did all of the available Windows Updates, I noticed that, whenever I try and open an elevated Command Prompt window (I want to do this to try and manually do some things to remove Windows.old, since it says that the directory is not empty), I see it open, but close instantly. A non-elevated Command Prompt window opens just fine. I searched, and haven't found anything. This also happens in safe mode.

A:Elevated Command Prompt window opens and closes instantly

Anything interesting in Event Viewer?

Read other 16 answers

Hey all,

Been quite a while since I've posted here, but an odd problem has come up for me. Overall Windows 8 has been great and problem-free, but I'm stuck on this one.

For some reason, when I open the Run box, it says "This task will be created with administrative privileges" as if I had UAC turned off. But, I don't have UAC off (I have it on default).

The other thing, related to Revo Uninstaller, is, when I open Command Prompt in Admin mode, the default folder is set to Revo Uninstaller's program folder. And again, no UAC prompt when opening in admin mode either.

Here are some screenshots if I was hard to understand, lol.

What I am trying to understand is why UAC has suddenly been acting as if it's turned off (when it isn't) and admin command prompt opens in that folder.

Thanks guys for the help, I really appreciate it !

A:Admin Command Prompt opens in Revo Uninstaller folder

Lol, being the dumb person that I am, this problem was fixed simply by rebooting my computer. Thanks for the help anyways ! I know this is how all of you must feel right now :

Read other 4 answers

I have only discovered this to have happened over the past few days. Every few hours, a command prompt would pop up and almost immediately close. I wonder if it's something as part of an update or some malware.

For context, I have MalwareBytes and Webroot as AV software. I have attached both logs in addition to the other logs.

Read other answers

Hi guys! I'm having this issue recently where the command prompt randomly opens and closes too quick for me to see what's in it. I ran virus searches with AVG but nothing is working and i also tried to use RKILL.exe nothing is working

Read other answers


I'm trying to split a .flv file by using flvparse, which is a Windows-only, command-line interface tool. I did get through to the directory by following instructions posted on another forum, however, command prompt doesn't seem to recognize the the .exe file. I'm an absolute novice at this, any help would be really appreciated!

Attaching a CP s/s, and here are the instructions I'm trying to follow (copy pasted from the forum)


For trimming the beginning and/or ending of videos, you can use FLVParser (http://dev2.avacast.com/FLVparser.zip ).
FLVParser is a Windows-only, command-line interface tool. After you unzip it, move its folder to C:\ for ease of use. Also for ease of use, copy/move the .flv file you wish to edit into the FLVParse folder.
To make edits, you need to know the in and out points where you want the edits. Use FLVPlayer to find these points. FLVPLayer only lists times in total number of seconds, not HH:MM:SS, but don't worry, FLVParser can handle that. In the FLVParse directory create a new blank text file called: CuePointFile.dat
This is the file FLVParser uses to edit from. Open it in NotePad, and enter the in point and out point, separated by a single blank space, like so: 2525 5150
Save, and close the file. Open up the command line interface and go to the FLVParse directory: cd C:\FLVParse
In the command line, enter this to edit the flv:
flvparse.exe FileToSplit.flv CuePointFile.dat
Your file will be split into ... Read more

A:Command Prompt doesnt seem to recognize the command line!!

You are using the basic cmd, try in elevated mode
Elevated Command Prompt - Windows 7 Forums

However looking at you screen shot, you may have to check the command over carefully. There does appear to be an error in the command. With my eyes, it is difficult at times to pick out the subtle shades of difference.

Read other 1 answers

when I open up my command prompt and type 'ipconfig' without the ' and press enter it returns the line:
'ipconfig' is nto recognized as an internal or external command, operable program, or batch file

I am trying to find out the information I need in order to set up a static IP Address for port forwarding

A:Command Prompt command <ipconfig> not working

In order to set up a static ip address internally, you'll need to either tell your router or your computer not to use automatic DHCP and instead to use a specific IP address.

Go to the System Tray (Notification Area)
Click the Network icon
Click 'Open Network and Sharing Center'
Click the 'Change adapter settings'

Selec the connnection for which you'd like to use a static IP
Right click it
Click 'Properties'
Select 'Internet Protocol Version 4 (TCP/IPv4)'

Select 'Use the following IP address':

In the 'IP Address' field, insert the IP you'd like to use.

Note: The IP you use must be within the router's list of acceptable IP addresses. It's usually a list between to


If you're trying to set up an external static ip you'll need to pay your isp extra for one.

Read other 9 answers

Hey guys,
Earlier my internet was being slow so I went to do a ping test and CMD proceeded to tell me that it didn't reconize the command. I have done countless pings before and this was weird. If i run CMD from the run bar by typing in its Dir then i can run ping and all the other commands or if i change the dir to sytem32 and run the command it works as well. I'm thinking that the paths for the cmd files have somehow gotten messed with and I'm not really sure how to change those so any advice on how to correct those paths would be greatly appreciated. Thanks

A:Command prompt won't execute commands from cmd or command

If you go Start - type cmd then right click on cmd to select Run as administrator you can run a system file check with the cmd sfc /scannow

With Win 7 you don't need to use the Run box.

Read other 6 answers

Hi All,

I'm running a program that parses .csv files and then changes them into ._OK files. This process takes longer when there are a large number of *.OK files in the folder where the files being converted are located. To remedy this I occasionally manually run this command:

del *._OK
While pointing at the proper folder.

Is there a way to have this command continuously run, kind of like out ping -t [IP ADDRESS HERE] continuously pings a certain IP address?



A:Command Prompt: Repeat del command continuosly

I'm running a program that parses .csv files and then changes them into ._OK files.

I take it then the conversion program will not accept an output folder other than the current or working directory? More detail what you actually do with the output files might be helpful.

Read other 2 answers

ok here is what i am trying to do i have software called btprox which lets me lock my computer when my phone goes out of range of my desktop using bluetooth. what i want it to do though, is when i come back to my desktop i want it to unlock automatically instead of just having to put my password in. (i know im lazy but really i just want to do it cause i think its cool) now this software lets you pick programs to run instead of the lock command and stuff. what i want to know is, is there a login command for the command prompt? cause then i could just set it to run a batch file when i come in range and it will log me in.

A:command prompt logon command?

Hi -

The Task Scheduler may be of some help --> http://www.sevenforums.com/tutorials...-new-task.html

I would urge caution in 3rd party software designed to circumvent Windows 7 security and power functions. You may come home sometime and find yourself locked out of your system and a reinstall of the OS to be the only viable option.

Good Luck to you.

Regards. . .



Read other 2 answers

When I type:
start funny picture.jpg
in the command prompt it says cannot find file 'funny' If I say:
start "funny picture.jpg"
it only opens another command prompt with funny picture.jpg as the window's title.

How can I open a file with a space in the name?

A:Command Prompt - start command help?

Welcome to TSF.

Type the command as follows:

Start "" "Funny Picture.jpg"

The first set of quotes ("") sets the title (for the window, this is what the start command expects for quotes normally), then the second set around the file name allows the space.


Read other 1 answers

My PC has been acting up recently. It's been running slower than usual, my games that I play are randomly crashing, and there are a couple of really random events happening.

1) Command Prompt is missing from Start Menu
2) "Run" command is missing from Start Menu
3) Internet Explorer missing from Start Menu, and every time it is opened, it pops up with the window that asks you to set up IE8 (the one that is supposed to open the very first time you start IE8)
4) Mozilla Firefox asks me to make it my "default brower" (to which I click yes) every time I open it
5) Some programs will not install correctly

I am running Kaspersky Internet Security 2010. It has popped up saying that it has detected trojans but blocked their access, and has no trace of them inside the application, as in there are no logs stating which ones it blocked, so I can't share those with you.

Any ideas as to what is going on? I also ran Webroot System Analyzer, and that came up clean, but there is obviously something going on with the symptoms listed above. Can anyone help me out? I attached a logfile of a Hijack This scan in case that helps.

Intel Core i7 940
6 Gb DDR3 1600 Mhz Corsair Dominator RAM
2x 1.5 Tb HDDs
32 Gb SSD
2x EVGA GTX 285 FTW Editons
Windows 7 Ultimate

A:Missing Command Prompt, Run Command, and Others

Hello and welcome to TSF.

We want all our members to perform the steps outlined in the link given below, before posting for assistance. There's a sticky at the top of this forum, and a

Having problems with spyware and pop-ups? First Steps

link at the top of each page.

Please follow our pre-posting process outlined here:


After running through all the steps, you shall have a proper set of logs. Please post them in a new topic, as this one shall be closed.

If you have trouble with one of the steps, simply move on to the next one, and make note of it in your reply.

Read other 1 answers

I woke up this morning and started up my computer. When I opened up mozilla and began to surf a bit, a random command prompt window pops up, runs some dialog and then closes just as quickly as it began. The window keeps closing faster than I can read what it is doing but I was able to see that it said something along the lines of "mozilla/roaming profile" i think.....What is going on? I have good virus protection...at least I thought I did. This issue hasn't caused any problems, YET. Please HELP ME, before it DOES!
**Also, after reading the forum prep...I tried running the DDS software like it says...but kept getting a notification popup that says, "DDS is not meant to run in 'Compatibility Mode' this program will now exit." As far as I know, I never set my preferences to run EVERY program in 'Compatibility Mode'. Just a few specific ones. I checked the 'Advanced Settings' in 'Compatibility Mode Troubleshooting', but the 'DDS' program doesn't come up in the list of affected programs...I am a bit stumped at this point.**

A:Command prompt (Mozilla roaming profile?) opens randomly when using Mozilla

Hello and welcome to Bleeping Computer! I am HelpBot: an automated program designed to help the Bleeping Computer Staff better assist you! This message contains very important information, so please read through all of it before doing anything.
We apologize for the delay in responding to your request for help. Here at Bleeping Computer we get overwhelmed at times, and we are trying our best to keep up. Please note that your topic was not intentionally overlooked. Our mission is to help everyone in need, but sometimes it takes just a little longer to get to every request for help. No one is ignored here.
To help Bleeping Computer better assist you please perform the following steps:
*************************************************** In order to continue receiving help at BleepingComputer.com, YOU MUST tell me if you still need help or if your issue has already been resolved on your own or through another resource! To tell me this, please click on the following link and follow the instructions there.CLICK THIS LINK >>> http://www.bleepingcomputer.com/logreply/534057 <<< CLICK THIS LINK
If you no longer need help, then all you needed to do was the previous instructions of telling me so. You can skip the rest of this post. If you do need help please continue with Step 2 below.
***************************************************If you still need help, I would like you to post a Reply to this topic (click the "Add Reply" button in the lower right hand of t... Read more

Read other 2 answers

Ok So I got myself into a unique bind here. I was trying to install some custom system files (for a theme) and I did it wrong and now I cant open explorer.exe . I dont want to goto a backup because this is a easy fix. (in my view). So I need to know how to run command prompt with administrative privleges from command prompt.

I am trying to do this command:

copy explorer.exe C:\Windows\

So if there is also another command I can just tack onto that that gives me admin rights to do it. I would be happy.

A:Run administrative command prompt from command prompt

On a friend's computer that also has win 7 64 bit installed, make a system Repair CD.

Boot from the system repair CD

go to a command prompt.


START | type System Repair | Enter key | Create Disc button


1) Insert System Repair Disc into optical reader.
2) Shutdown your computer.
3) Boot up your computer from the System Repair Disc
If your computer doesn’t boot from the optical drive, then
Immediately after pushing your Power ON button,
start tapping the F2 key to get to the BIOS to change the boot order

On some computers, Immediately after pushing the Power ON button, start tapping the F12 key and choose CD/DVD to change the boot order only for this time.
4) Wait while a mini-version of Windows is loaded and finally the SYSTEM RECOVERY OPTIONS dialog appears.
will search your system for installed versions of Windows.
7) select the Use recovery tools that can help fix problems starting Windows radio button |
8) Choose command prompt from the list shown

Run any desired commands and type EXIT when finished.
Remove the System Repair Disc.
Shutdown your computer.
Power on your computer.

Read other 5 answers

I want to hide this. I'm running a python progam (if that matters) and it always has that open on my taskbar. I want to hide it. I don't care where it goes or how much time it takes, I just want to hide it. So I never have to deal with it. Maybe make it a system process or something? I don't know.

Read other answers

Hello Everybody!

I don't know if this is a real issue, or just one of those "What the . . . .!!" situations. You judge.

I was working on a batch file that combines two .txt (ASCII?) files created in Notepad to create a composite file, and I noticed something really interesting. (And yes, when someone talks about doing something and the result is "really interesting", it's time to duck and hunt cover! )

Assume that there are two text files: "This.txt" and "That.txt", and they contain the text "This[cr-lf]" and "That[cr-lf]", where [cr-lf] is used to indicate a newline generated by hitting the "Enter/Return" key on the keyboard.

If you look at the files with a hex editor, what you see is something like this:
The file "This.txt" contains the text "This" followed by 0x0D0A, which are the ascii codes for CR and LF.
The file "That.txt" contains the text "That" followed by the same CR and LF characters.
Note that these two files contain nothing else.

Issue I discovered:
When I execute the command copy /y ".\This.txt"+".\That.txt" ".\This&That.txt", I do not get the simple concatenation of the two files, which is what I would expect. Instead I get the two files concatenated, (including the trailing CR/LF's as I would expect), but also one additional character, the hex character for a right-arrow symbol - 0x1A. In e... Read more

A:"Copy" command in command prompt generates 0x1a artifact?

I was trying to remember from my DOS days but drew a blank. A Google Search brought up a possible solution:
ms dos - In MS DOS copying several files to one file - Stack Overflow

Read other 6 answers

As the title says I'm really messed up and don't know what I've done.

When I try and open My Pictures for example it opens up command prompt for that folder. I've been messing about in My Computer trying to change folder icons. But some how I've managed to stop opening fodlers.

Any help would be appreicated greatly.


A:Opening a folder opens Command Prompt for the folder.


run that fix, by saving it to your desktop

that should sort the problem


Read other 3 answers

Hello Everyone,

Thank you for taking to read this thread; what is the command to view ip configuration in Win XP in Command Prompt? I tried "IP Config" and it's not correct. Thank you ahead of time for your assistance.


A:Solved: Command Prompt

There are available options to change what is outputted (like ipconfig /all) but I'm not sure what all of them do.

Read other 3 answers

As you can see, I cannot get to the C: drive while I CAN get to my d: and e: drives. What's going on here? Vista is running from the C: drive and it appears fine in explorer.
I discovered this problem while having trouble getting java to compile and run in cmd. I think the problems are related.

A:Solved: Cannot go to C: in command prompt.

cd \

Read other 1 answers


I think i may have just made a big mistake, whilst messing around with command promt and researching on websites i wanted a program to run when my comuter started, a website stated to add it to the autoexec.bat file as a 'call' program or in config.sys, so in cmd i entered edit autoexec.bat and a blank edit screen appeared, i did the same with config.sys and another blank screen appeared. It said beneath to open sysedit from start>run, i did and the autoexec.bat file was empty and so was the config.sys file, is this serious or am i jusy being silly!!!


A:Solved: HELP, XP command prompt

Read other 13 answers

im a newbie - sorry if im not posting in the wrong forum.
im posting for a friend here whos keyboard's "\" doesnt work. and please assume that the friend cant get a new keyboard (sorry if thats annoying!)

in command prompt, she wants to get to the root directory (is that right?) of drive C, where her windows are installed
the command for which is said to be cd\

now if she types cd/ or c: , it doesn't give the root C:.
the directory doesnt change, it stays as:
C:\Documents and Settings\admi>

we want it to get to:

how can that be managed without having to get a new keyboard? :O basically i just want to know an alternate method.

A:Solved: need help with command prompt

Read other 7 answers

Guys, halp me plz, I need to use the command prompt to do something (well, to mod a game to be specific)

I have to use command prompt to open a directory and an exe file in it but I can't do that because when I open the command prompt the text: "C:\Users\1>" is written in it and I can't delete that, even if I continue to write commands and stuff in it I get errors because of that,

The "C:\Users\1>" is always on the line which I am on and does not get deleted even when I try using the clear screen command,

I know that "C:\Users\1>" is also a directory and I can access any folders inside it but I want to have a blank command prompt with nothing written on it,

(And one last thing:) I tried another computer with Windows XP but it's giving me the same problem so maybe this thing is actually normal or what?

Plz help me, this is very important to me any helpful replies would be really appreciated, I hope this first post is decent enough for you guyz.

A:[SOLVED] What's up with my Command Prompt?

how are you opening command prompt?

try this....start > type cmd right click on command prompt (from the menu) choose run as administrator ...good luck

Read other 12 answers

I'm trying to get to c:\ on the command prompt but all I get is "Documents and Settings\Dave>" I enter cd but it returns to the same place. How can I get to the c:\ ?

A:Solved: Command Prompt

Just type c:\ at the end of ...Dave>

Let's say you were going to delete a file, you would do it like the following:

C:\Documents and Settings\Dave>del C:\Windows\filename.exe

(Or any other path where your file is)

Read other 3 answers

Thanks in advance. I have no command prompt under Start>Programs>Accessories. How do I put it there? I can find it through Search but would like it where it belongs.

A:Solved: No command prompt

You could do it this way. Right click the Desktop. Choose New, Shortcut. For location, type:%SystemRoot%\system32\cmd.exe Next, name it anything you like. Click Finish. Left click and hold on the shortcut. Drag to the Start button. Still holding, drag to Programs, then Accessories, and into the Accessories box. Let go of the mouse.

Read other 2 answers

Hi Guys, Got another problem. For some reason(Idon't know how) my command prompt was in my start menu. I didnt know what to do with it so now its in my docs. I am having trouble getting some things to run and I believe this is the trouble. I dont know who did it or how to undo it. Im new at this and dont want to screw up anything. any ideas as to what i should do to get this(command prompt) back where it belongs? Thank You...Joe

A:Solved: command prompt

Do you mean it was visible when you clicked on start??
All that means is that you or someone else used it recently and it is only the short cut for it not the program

Read other 3 answers

Help Please

Under the Command Prompt panel how can I:
String together and execute a series of commands?
Export and Import files of these commands?
Thanks for any help.


A:Solved: Command Prompt

Try this page on MS-DOS 6.0 Command Reference it might give something on this or look for batch commands. I used to know how to do this but as they say if you don't use it you lose it.


Read other 1 answers

I mean beyond what the default XP prompt allows, like you can in Linux? You know, like an image in the command prompt or to make it translucent and all that fancy stuff. I have a hunch that Windows does not allow this for some sort of security precaution? Heck, I don't know.

Anyone heard of anything in this regard?

Thanks in advance!

A:[SOLVED] Any way to customize the XP command prompt?

You can change the background color and text color. You can also change the font. I don't know of anyway to change the background to a picture. You might be able to do it with the new PowerShell but I have not gotten around to testing it out yet.

Read other 1 answers

Alright, yesterday I got a bunch of spyware and virus infections. I have been fixing them but today, I keep getting a System32:Lzx32.sys BSOD. I would log in XP, and within a few minutes, the BSOD would pop up, forcing me to reboot. I did a research on this on google (on another computer) and I came upon this page;

So, like it states on that page, I downloaded rustbfix.exe and combofix.exe and I ran rustbfix.exe. Rustbfix.exe said something like "the first step has been fixed, now reboot to activate blahblah on startup" or something along that line. I rebooted. Now, even in safe mode, whenever I log in XP, command prompt pops up, and just sits there. Its the only thing on the screen, besides my wallpaper. When I shut the command prompts off, there is nothing on the desktop, not even any toolbars or the start bar, yet I can control+alt+delete.

PLEASE, any kind of help will be appriciated!

A:Solved: Command Prompt pops up and cant do anything! PLEASE HELP!

Read other 15 answers

This is my first time here in TSF so bear with me.

So I got a new asus s500ca w/ windows 8.1 on new years as a belated christmas gift and so far it's pretty good. But I need to ask if what I've been having is serious or not. On occasion, whenever I log in and enter the desktop the command prompt briefly pops up for about a second or two with the title "c:\windows\system32\cmd.exe" and disappears quickly after. But besides that, my laptop's been running alright. I've ran a scan through both malwarebytes and avast and didn't catch anything suspicious. I need to know because it's making me kinda paranoid and I just want to make sure my laptop is doing ok, even if it doesnt appear all the time.

A:[SOLVED] Command prompt pop up on occasion? Is it serious?

An update on this. I figured out what's causing it, it turns out it's asus smart gestures doing, so I suppose it's not much to worry about.

Read other 1 answers

I'm having an issue on my computer where command prompt will not open. I looked in the system32 folder and cmd.exe is missing, however there is cmd.exe.mui is there. I also tried to run hijackthis to get a log, however the program keeps spitting out a blank log when I click save log.

A:Solved: Command Prompt Will Not Open

Read other 16 answers

Hi Guys, every time i log on or turn on my computer, i get a command prompt box open up with the title C:\WINDOWS\system32\java.exe
I cant figure out why it keeps popping up everytime, its only started in the last few days,
I cant find anything in msconfig that relates to it. any ideas how to stop it and is it a problem?

Im running windows xp home edition and as far as im aware its virus free,


A:Solved: Java command prompt box

Read other 7 answers