Over 1 million tech questions and answers.

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

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

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?
Thanks

RELEVANCY SCORE 200
Preferred Solution: Make a command prompt run a command as soon as it opens?

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: 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,
Shawn

Read other 11 answers
RELEVANCY SCORE 120.4

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:
Code:
Call Shell("cmd.exe" & dosCmd, vbNormalFocus)
I can also open Acrobat which is the program I need using:
Code:
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:

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

Code:
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
 

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

Read other 8 answers
RELEVANCY SCORE 102.8

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
RELEVANCY SCORE 102.8

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
RELEVANCY SCORE 102

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

Read other answers
RELEVANCY SCORE 102

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.

Thanks

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
RELEVANCY SCORE 102

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.

FRST:
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\22.5.2.15\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\22.5.2.15\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
RELEVANCY SCORE 102

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
RELEVANCY SCORE 100.8

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?


Edit:

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:
http://www.dougknox.com/xp/scripts_d...older_open.htm

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
RELEVANCY SCORE 100.8

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
RELEVANCY SCORE 100.8

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
RELEVANCY SCORE 100.8

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
RELEVANCY SCORE 100

Hi, I'm really struggling with command prompt right now, it doesn't make any sense, and I have found ZERO info through repeated Google searches.

I'm on Windows 10 and for some reason my Photoshop CS6 refuses to open and throws the stupid "This app has been blocked for your protection" error at me. I already had UAC disabled because it's annoying and I run everything as admin. Right now I'm trying to simply create a shortcut that runs Photoshop.exe through command prompt so I don't have to mess with it every time I want to use Photoshop. The .exe is located at D:\Program Files\Adobe\Adobe Photoshop CS6 (64 bit)\Photoshop.exe (my own program files location). If anyone can help write a shortcut command if it's even possible, it would be greatly appreciated.

Thanks

A:Need to make a command prompt shortcut

See whether this can help

http://www.howtogeek.com/209694/runn...ommand-prompt/

Read other 0 answers
RELEVANCY SCORE 100

Ho do I make a DOS / command prompt boot CD and add files into it.

A:How do I make a DOS / command prompt boot CD?!?

Welcome to the forum you can download them from many sites depending what uou want allbootdisk.com

Read other 1 answers
RELEVANCY SCORE 100

For those who have not done that yet, here is a little video tutorial I made on how to make the cmd GUI a little fancier. I did not like the little black window of cmd - maybe you don't either.

A:Make the Command Prompt GUI look nicer

  
Quote: Originally Posted by whs


For those who have not done that yet, here is a little video tutorial on how to make the cmd GUI a little fancier. I did not like the little black window of cmd - maybe you don't either.


Making a tutorial on this now

ZeshanA

Read other 8 answers
RELEVANCY SCORE 100

I've looked everywhere on the web, and everything seems to apply to Windows 98 or earlier, and people with floppy disks!

I need a simple CD or USB drive (CD preferably as USB booting I can never get to work) so I can flash a BIOS. The computer has no flash function in BIOS setup, and no windows based flash program available, so I need a command prompt!!!

I tried a couple of free CD burning softwares, and the format utility in Windows 7, but none of them let me make the CD bootable! Those that do want a FLOPPY(!) as a source!

HELP!!!!!

A:How do I make a DOS / command prompt boot CD?!?

Take a look at this: How to flash your BIOS without a floppy drive - Broadband Genie

Stephen

Read other 9 answers
RELEVANCY SCORE 99.6

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
RELEVANCY SCORE 99.6

Hi
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

Hi,

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
RELEVANCY SCORE 99.6

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
RELEVANCY SCORE 99.6

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
RELEVANCY SCORE 98.8

Not sure how to put this exactly.

I installed Ruby in E:\Ruby200. I then installed SASS. `sass` can be found in E:\Ruby200\bin\sass. Is there a way I can make this sass command available in any folder instead of just the ruby/bin folder?

Follow up question. Is there a way to launch a new command prompt window via a shortcut which would open command prompt in a prespecified directory? Say.. I double click a program shortcut and command prompt opens in `E:\Ruby200\bin`

Follow Follow up question. Any idea how to open up more than one command prompt window in windows 8?
 

A:Make installed command prompt commands available anywhere?

You need to edit the PATH environmental variable. Add the folder paths of where your executables are and then they will be available from any directory you are in.
 

Read other 1 answers
RELEVANCY SCORE 97.6

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
RELEVANCY SCORE 96.8

How does one make *.* [Files, Folders, Directories, Drives, Locations & File Extensions] Visible on all drives whilst in Windows recovery environment Command prompt?

Only *.* visible on x:\

Need tutorials or other info.

A:Make *.* Visible All Drives Windows Recovery Command Prompt

Hi

It's not clear what you are really trying to do. If your intention is to display all files and folders with extensions, dir /a:h will do the trick.

Read other 4 answers
RELEVANCY SCORE 96.8

Hello,

I found this article: "How to Change the Title Bar Caption of the Command Prompt"

It explains nicely.  But I need to see only current directory path is displayed in the displays. If I launch command prompt from'C:\Users\Dell\Pictures\Camera Roll\' directory,
It show  'C:\Users\Dell\Pictures\Camera Roll>'.
But, I want to see this 'Camera Roll>'
Can anyone help?

Thanks.

Read other answers
RELEVANCY SCORE 96.4

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.

Thanks!
 

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

Read other 15 answers
RELEVANCY SCORE 96.4

Hello,

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)

FLVPARSER

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
RELEVANCY SCORE 95.6

does anyone know how to make a batch file where you could start ,disable , stop and manual for a service from the command prompt ?

for example instead of going to services.msc and right clicking on a service then clicking on properties then making the startup to be manual,automatic or disable . I could do with a batch file where i would just launch the batch file and it would make the startup to manual and then disable the service that i want to disable.

A:How to make a batch file on starting and stopping services from command prompt ?

Aside from the obvious, what is it you're trying to accomplish? What services do you want disabled at one time but not another?

Read other 15 answers
RELEVANCY SCORE 94.8

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

C:\WINDOWS\system32\command.com
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:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDOWS\system32\lsass.exe
C:\WINDOWS\system32\svchost.exe
C:\WINDOWS\System32\svchost.exe
C:\WINDOWS\system32\spoolsv.exe
C:\WINDOWS\System32\drivers\CDAC11BA.EXE
C:\WINDOWS\Explorer.EXE
C:\WINDOWS\system32\cisvc.exe
C:\WINDOWS\System32\CTsvcCDA.EXE
C:\Program Files\Cisco Systems\VPN Client\cvpnd.exe
C:\Program Files\Common Files\McAfee\HackerWatch\HWAPI.exe
C:\PROGRA~1\McAfee\MSC\mclogsrv.exe
C:\PROGRA~1\McAfee\MSC\mcupdmgr.exe
c:\program files\common files\mcafee\mna\mcnasvc.exe
C:\PROGRA~1\McAfee\VIRUSS~1\mcods.exe
C:\PROGRA~1\McAfee\... Read more

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

Read other 16 answers
RELEVANCY SCORE 94.8

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
RELEVANCY SCORE 94.8

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.






Quote:
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 192.168.1.100 to 192.168.1.255


http://social.answers.microsoft.com/...f-3656805f1844

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
RELEVANCY SCORE 94.8

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:


Code:
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?

Regards,

Dan

A:Command Prompt: Repeat del command continuosly

Quote:
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
RELEVANCY SCORE 91.2

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?

Hi,
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.

Paul

Read other 1 answers
RELEVANCY SCORE 91.2

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. . .

jcgriff2

.

Read other 2 answers
RELEVANCY SCORE 91.2

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.

SYSTEM SPECS:
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
Quote:




Having problems with spyware and pop-ups? First Steps




link at the top of each page.

Please follow our pre-posting process outlined here:

http://www.techsupportforum.com/f50/...lp-305963.html

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
RELEVANCY SCORE 90.8

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:-


Code:
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
RELEVANCY SCORE 90.8

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
RELEVANCY SCORE 90

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.


CREATE A SYSTEM REPAIR DISC

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





GO TO A COMMAND PROMPT USING A SYSTEM REPAIR DISC

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.
5) NEXT
6) SYSTEM RECOVERY OPTIONS dialog
will search your system for installed versions of Windows.
7) select the Use recovery tools that can help fix problems starting Windows radio button |
NEXT
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
RELEVANCY SCORE 90

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
RELEVANCY SCORE 90

Hello Everybody!

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

Situation:
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! )

Viz.:
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
RELEVANCY SCORE 89.6

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.

Thanks
 

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

http://www.dougknox.com/xp/scripts_desc/xp_folder_open.htm

run that fix, by saving it to your desktop

that should sort the problem

joan
 

Read other 3 answers
RELEVANCY SCORE 84.4

Code:

@Echo Off
Title Sccm
cd %systemroot%\system32
call :IsAdmin


Reg.exe add "HKLM\SOFTWARE\Microsoft\CCM\CcmExec" /v "SystemTaskExcludes" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\CCM\CcmExec" /v "ProvisioningMode" /t REG_SZ /d "false" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\SMS\Mobile Client\Software Distribution\State" /v "Paused" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\SMS\Mobile Client\Software Distribution\State" /v "PausedCookie" /t REG_DWORD /d "0" /f
Exit


:IsAdmin
Reg.exe query "HKU\S-1-5-19\Environment"
If Not %ERRORLEVEL% EQU 0 (
Cls & Echo You must have administrator rights to continue ...
Pause & Exit
)
Cls
goto:eof
let say my computer have a the same folder in the registry but different value. by using this command it wont merge it. so how do i actually add in a merge with this ?

A:need help with command prompt command

By folder I assume you mean Key. The /f parameter you use should overwrite any current value. Are you saying that doesn't work?

If you remove /f and a value already exist for a key, you'll be prompted if you want to overwrite the current value. That's a good way of testing this.

Read other 2 answers
RELEVANCY SCORE 84.4

Hello

One question about DIR command in CMD for creating filename.doc.

I am using the following command:

dir /ad /s /b > filename.doc

Could I get as the result (text inside file filename.doc) only two parts of each line? What I mean is this:

I have the line that looks like:

C:\Main Folder\Subfolder\Subsubfolder\[blabla] example_of_folder_name

I would like to have this only:

Subsubfolder\[blabla]

In each of line (no matter how many hundreds or thousands of lines) only those two parts.

Thank you...

A:Command Prompt (CMD) DIR command

hello?

Read other 3 answers
RELEVANCY SCORE 82.4

Hello.
Windows firewall on a client is enabled and I can't disable it via "PsExec". Can I get command prompt via "WMIC" command and then run "netsh" command for disable firewall?

Thank you.

Read other answers
RELEVANCY SCORE 80

I have already tried the EASE ACCESS option but could'nt find to stop this Short Cuts as these keys are well working in My virtual machine , Can any one suggest the answer of it.

A:Keyboard shorcuts opens, when i press R it opens the RUN Command window & when i press E it opens the My computer , How should i remove these shorcuts. When i use these keys in my Virtual machine it works fine, Kindly guide me in this issue

Hi ABDUL WASI,
Thanks for the post!
It seems the shortcut keys are messed up. Did you get this issue before?
By default, Win+R is used to open Run command, and Win+E for opening Computer. It seems these shortcut keys are changed. Now, if you press Win+R or Win+E, which windows will show?
If you figure out which application used this two shortcuts keys. Right-click the application, choose Properties - Shortcut Tab, what's behind the Shortcut key box? Change it with another shortcuts key.
Also fully scan your computer, and if you have a backup, a system restore could help you come back to a nearlier time.
Regards,
MiyaThis posting is provided "AS IS" with no warranties, and confers no rights. | Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer
your question. This can be beneficial to other community members reading the thread.

Read other 3 answers
RELEVANCY SCORE 78.4

I have a number of problems on a Vista machine. Internet explorer, Firefox and Chrome are unable to access the WWW. Google earth works, as does the AOL browser. I cannot get a command prompt and if I try to run IPCONFIG etc, I just a get a brief flash on the screen. Are they all related or have a I got a number of problems? I have done a system restore but to no avail.

Thanks in anticipation Zog
 

A:No Command Prompt, IE etc

Read other 10 answers
RELEVANCY SCORE 78.4

Hi I need ur help to idenfy the problem which occured to my HP NOtebook.
I am using Windows XP SP3

When I try to do the following the Dos command prompt page does not appear. It only happened recently

Start\Run..... type cmd

Please help me to solve this problem.

Thank you
 

A:Command prompt

Read other 7 answers