Over 1 million tech questions and answers.

Hide program command line / prompt / Window / Command line argument?

Q: Hide program command line / prompt / Window / Command line argument?

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 200
Preferred Solution: Hide program command line / prompt / Window / Command line argument?

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

RELEVANCY SCORE 155.2

Operating system XP

This has been a strange error to track down, it started when a few programs would no longer run (outlook, open office, etc..) They would all suggest that a command line argument was incorrect. No matter how the program was run (shortcut, directly, run program box) it would still fail.

I ended up throwing a few lines of VB code together to display any command line arguments that may be passed to it; when I run my program I see it is sent a single quote "

This is the same if i double click the file in explorer or type the program name in the run box.

Every single program that is opened is passed a single quote as a command line argument!!! Same in safe mode, even tried a system restore to a date before this problem with no luck.

no idea where to start looking so please, any suggestions

- Andy
 

A:Solved: command line argument added to EVERY program opened

Since System Restore had no effect, the standard EXE fix may not help either, but worth a try. #12 at:http://www.kellys-korner-xp.com/xp_tweaks.htm

Start, Run, Msconfig, Startup. Can you identify all the entries? Google the names, if unsure.

Have you installed any programs lately? Or updates?

What is the 'exact' wording of the error message?
moper
 

Read other 3 answers
RELEVANCY SCORE 141.2

When i download something off the net and it opens it comes up with an error saying Invalid Command Line Argument....it started doing this after i installed(really my pc has auto update)new win dows updates.Anyone have any Solutions....ohh and heres my hijack log

Logfile of HijackThis v1.98.2
Scan saved at 7:44:27 PM, on 10/18/2004
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\Explorer.EXE
C:\WINDOWS\system32\spoolsv.exe
C:\PROGRA~1\COMMON~1\AOL\ACS\acsd.exe
c:\PROGRA~1\mcafee.com\vso\mcvsrte.exe
C:\WINDOWS\System32\svchost.exe
C:\WINDOWS\wanmpsvc.exe
C:\windows\system\hpsysdrv.exe
C:\PROGRA~1\mcafee.com\agent\mcagent.exe
C:\PROGRA~1\mcafee.com\vso\mcvsshld.exe
c:\progra~1\mcafee.com\vso\mcvsescn.exe
C:\WINDOWS\System32\xdzmobrq.exe
C:\WINDOWS\system32\rundll32.exe
C:\Program Files\WindUpdates\WinUpdt.exe
C:\Program Files\ISTsvc\istsvc.exe
C:\Program Files\Ahead\InCD\InCD.exe
C:\PROGRA~1\AIM\aim.exe
C:\Program Files\America Online 9.0\aoltray.exe
C:\Program Files\WindUpdates\WinKA.exe
c:\PROGRA~1\mcafee.com\vso\mcshield.exe
c:\progra~1\mcafee.com\vso\mcvsftsn.exe
C:\Program Files\Messenger\msmsgs.exe
C:\Program Files\America Online 9.0\waol.exe
C:\Program Files\America Online 9.0\shellmon.exe
C:\Program Files\Am... Read more

A:Invalid Command Line Argument

http://www.newdotnet.com/removal.html
 

Read other 3 answers
RELEVANCY SCORE 140.8

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 139.6

I just installed a new brother MFC-9840CDW printer and when i try to scan to email (Outlook 2003) it tells me, "The command line argument is not valid. Verify the switch you are using." Any suggestions? I did download a hotfix from microsoft but that did not fix the problem
 

A:Solved: The command line argument is not valid?

Does it support Outlook? Is Outlook your default mail handler?
 

Read other 2 answers
RELEVANCY SCORE 139.6

I am enjoying Windows 7, but because of some relatively simple disagreements I have with the interface, I've installed litestep as my shell, which I was very comfortable using in previous versions of Windows. Aero and the new and improved task bar just don't cut it for me. The biggest difference I need is hotkeys for starting applications, and from what I've seen Windows 7 doesn't have it. That's fine. Litestep does and that solves my problem.

However, I also prefer to use vim for my text editing, as it's far more powerful than notepad, and I don't need to muck around with the mouse to use it. I usually start it by right-clicking a text file and selecting the "edit with vim" shell extension that was enabled when I installed vim, and then it's all keyboard.

Unfortunately, there doesn't appear to be a way to edit the access settings when starting vim this way. I want it to run with full administrative access every single time I run it. That's basically all I use it for, other than some idle notes and light coding.

Is there a command-line argument to grant full administrative access to an application, or perhaps a way to grant my user unprompted administrative access? It appears that my user is an administrator, but not really. This new model of security through confirmation is dangerous, but in the case of someone that knows how to use their computer, and how they want it to work, it's just plain annoying.

Can anyone address these concerns?

A:Command-line Argument for Admin Rights

  
Quote: Originally Posted by bahua


I am enjoying Windows 7, but because of some relatively simple disagreements I have with the interface, I've installed litestep as my shell, which I was very comfortable using in previous versions of Windows. Aero and the new and improved task bar just don't cut it for me. The biggest difference I need is hotkeys for starting applications, and from what I've seen Windows 7 doesn't have it. That's fine. Litestep does and that solves my problem.

However, I also prefer to use vim for my text editing, as it's far more powerful than notepad, and I don't need to muck around with the mouse to use it. I usually start it by right-clicking a text file and selecting the "edit with vim" shell extension that was enabled when I installed vim, and then it's all keyboard.

Unfortunately, there doesn't appear to be a way to edit the access settings when starting vim this way. I want it to run with full administrative access every single time I run it. That's basically all I use it for, other than some idle notes and light coding.

Is there a command-line argument to grant full administrative access to an application, or perhaps a way to grant my user unprompted administrative access? It appears that my user is an administrator, but not really. This new model of security through confirmation is dangerous, but in the case of someone that knows how to use their computer, and how they want it to work, it's just p... Read more

Read other 4 answers
RELEVANCY SCORE 139.2

Howdy! I've tried the search utility here with no luck, I've also googled every term possible - again, no luck, so here's my strange predicament: all of my small command line exes are misbehaving the same way, i.e., on opening, they all quickly flash the command-line interface and then disappear. To where, I can't find out. They're not in processes and they're not running, as far as I can tell. Incidentally, my Windows XP Start>Run command-line works just fine. I am able to open these exes there but I'm very inept at running them from there. I'd just like them to perform as they’re supposed to. Do you have any idea what it is that needs configuration? I'm sure of the integrity of these apps, some of them I've used previously with no trouble. MBR tools, for instance. I've scanned recently and don't suspect virus infection as everything else performs well.
 

A:Command-line Program Window Disappears

Read other 10 answers
RELEVANCY SCORE 132

Anybody know the command to copy a disk? Like Linux = cp /dev/sda /dev/sdb , or dd xyz -> xyx

What's the Windows command line syntax for this copy task?
 

A:Command line to clone disk? COMMAND line; NOT 3rd party app.

No. Don't believe that is built in. The latest Windows versions have imaging software built in with a GUI.

Or, DD For Windows

Free system imaging/backup software:

Macrium Reflect (Free)
O&O Disk Image Express
Comodo Time Machine
Clonezilla Live (A bootable CD of Debian with Clonezilla.)
Paragon Backup & Recovery
Drive Image XML
PING (Partimage is not Ghost)
Partition Saving
Clonezilla
 

Read other 3 answers
RELEVANCY SCORE 128.4

Hi!

I want to no how I can hide gadgets from the command line.

I'm constantly frustrated by the fact that the gadgets layout is destroyed when I rotate my screen. So I set a scheduled task to unpack and overwrite the ini file for the gadgets.
But it doesn't work reliably (nothing does with the pathetic task Sheduler). The task doesn't run on time (or doesn't run at all) and such the layout is still broken. So I was thinking I could hide it via command line, restore the ini, then show them again. (With three tasks with a delay, because the task scheduler is garbage and it wont work otherwise, if it'll work at all.)

Read other answers
RELEVANCY SCORE 127.2

os : windows 7 sp 1

VLC media player version 2.2.0

When open vlc media player an additional vlc window(command line interface) opening ,

how to hide that command line interface in VLC

can't able to close command line interface window, when i did total vlc closing ???

A:how to hide VLC media player command line interface

Hi have you tried going to the vlc program file in all programs and resetting the preferences

Read other 2 answers
RELEVANCY SCORE 126.4

I'm not sure if I have the name right, but, basically; the little blinking line that shows up when you're typing something, right? AKA, when you're writing up a response to this, it will be there just ahead of your text.

Anyways! This thing won't go away on my Firefox, no matter where I click. For instance, if I click off to the side of this type box, the line blinks off to the right of the resize button. If I click up near the top of the page, it'll be somewhere up there, depending on where I click, usually next to a link or something. If I click in the middle of any text on a webpage, say a blog or what have you, the little line is right there, blinking merrily away.

So it's not a huge problem, but it's irking the hell out of me. My sister brought her kids over while I was at work, and I'm assuming they got a hold of my keyboard or something, since it wasn't happening before now.

Anyways, anybody have an idea of how I might stop this little nuisance?

A:[SOLVED] Command Prompt Line always showing

It's called caret browsing and can be toggled on/off with the F7 key.

The kids might have hit the key by mistake, but it usually brings up a popup box asking you to confirm the change.

Read other 2 answers
RELEVANCY SCORE 126.4

I want to run a chkdsk c: /f /r /x from a command prompt but NOT have it ask if I want to run it at next reboot. I just want it to run without a y/n input. Is there any such way to do this?
 

A:Solved: Run chkdsk.exe via command line without getting yes or no prompt?

No way. It can only fix errors when the OS is not running.
 

Read other 2 answers
RELEVANCY SCORE 125.2

I need to be able to open PDF files from Win 8 32 bit DOS Command Line to complete a DOS macro for a document management database I've used for 20+ years.

On XP Systems I simply have macro grab file name from database and type >Start "Path\filename.pdf"

Does Windows 8.1 have a similar capability? I'm using ClassicShell.

I understand that Start now opens another instance of cmd, but is there a work around to launch PDFs from command prompt and hand back control to DOS after file is open?

Thank you,
Tom

Read other answers
RELEVANCY SCORE 124

Hi All,

Previous PC was an XP and we had a shortcut within the Send To context menu called "Mail To" which when clicked on a file would open a new email with the file attached and with the default email (as done from within Outlook), not the crappy text "mail recipient" one that is standard in the Send To context menu.

The target string in the shortcut was
"C:\Program Files\Microsoft Office\Office11\OUTLOOK.EXE" /c ipm.note

When trying to set up the same shortcut in Win 7 using the same string (but with Office14) we get an error which states. "The command line argument is invalid. Verify the switch you are using."
"C:\Program Files\Microsoft Office\Office14\OUTLOOK.EXE" /c ipm.note

If I navigate to the SendTo folder and double click the shortcut, it works. It opens up a new email as if I click New E-mail from within Outlook. But when selecting via the context menu, it fails everytime.

What can we do to fix this? We have to email a lot of files manually and opening a new email then attaching(or even drag/drop takes a lot of extra time.

Thanks for any advice.

A:"Mail to" shortcut in Send To context menu fails command line argument

Hello StuckatWork, and welcome to Seven Forums.


Double check in Default Programs to make sure that Microsoft Outlook is set as the default email client.

Are you able to select the files you want to attach and click on the E-mail command bar button for this to work that way instead?



Hope this helps,
Shawn

Read other 4 answers
RELEVANCY SCORE 123.6

hi folks,

I'm currently running Windows XP SP3 on a netbook which is connected via WiFi to the internet. One of the executable programs I use require the netbook to be offline before it can load properly.

What I wanted to know was, is it possible I can write a command line prompt that will automatically kick in when the executable runs. The prompt would disconnect the WiFi, allowing the program to boot offline without having to manually disconnect everytime.


Thanks in advance for reading the post

A:writing command line prompt: no wifi when opening executable

Hi

For more information you can read this document Enable/Disable Wireless Card from Command Line

First you have to download devcon.
Unzip it and copy the unzipped devcon.exe file to c:\windows\system32

Then create a file in notepad, copy the code below and paste it into the file. save it to your desktop as something like myprogram.bat:

Code:
devcon disable *DEV_001C*
program.exe
devcon enable *DEV_001C*
The device ID (DEV_001C) is found in your dxdiag.txt file that you attached and is the device ID of your Wireless card.
Program.exe is the name of the executable program that you want to run - change it to the name of your program's file name.
The batch file will disable the wireless card, then run the program. Once you exit the program the wireless card will be enabled again.

Or else

Code:
devcon disable *DEV_001C*
start program.exe
devcon enable *DEV_001C*
This batch file will disable the wireless card, Start the program and then enable the wireless card regardless of whether you are still in the program or not.

Note Devcon is a very powerful tool and you will have to be logged in as an administrator to run it.

Read other 1 answers
RELEVANCY SCORE 122.4

Hi guys,

I have a folder with 995 files in it and I'd like to give someone a text file with a list of all these files in it. Is there a way that I can get the command line to send the names of these files to a text file?

I tried navigating to the directory and using the DIR command and, sure enough it gives me a list but I am unable to copy and paste it to a textfile myself for some reason.

Any help would be appreciated.

A:Command Line Prompt - How To Export List of Files to Text File

type this:

DIR > dir.txt

This should save the output of DIR into the text file dir.txt

Read other 5 answers
RELEVANCY SCORE 121.6

can Window Update be ran from command line?

A:run window update from command line?

yes, you can run it from the command line

%windir%\system32\wuapp.exe startmenu

works but it brings up the gui

Rich

Read other 9 answers
RELEVANCY SCORE 120.4

I am trying to close a window on my Win2000 Ser using a batch file. I cannot find a way to shutdown the SQL Remote (I have Adaptive Server Anywhere 7 ver. 7.0.3.2082). SyBase told us to make the application a service but for one reason or another we cannot in this instance. Does anyone know how I can shut down this app. ether through SyBase or through Windows?
 

A:(Solved) Closing a window with a command line

Howdy Bookworm69...

If it is running as a process you can use tskill, to end it in a batch...

You will need the W2K resource kit for the file tskill.exe...
 

Read other 3 answers
RELEVANCY SCORE 120.4

i get an error when i try to run cmd that says:

c:\WINDOWS\system32\cmd.com
c:\program files\symantec\s32evnt1.dll
an installable virtual device driver failed dll initialzation...

then i can close or ignore, and ignore does nothing. My computer had norton system works or something on it when i got but i took it off. Any help is greatly appreciated

i get the error when i do start -> run -> cmd
 

A:error when trying to open command line window

Read other 15 answers
RELEVANCY SCORE 120

Hello All,
I would like to know if there is a way to run a java program, requiring administrator priviledges, via the Windows command line.
Normally you would right click and then select 'run as administrator' - but i would like to set this as a property on the command line, so that you dont have to right click every time. Is this possible?

A:how to run a program as adminitrator via the command line

Create a new txtfile, pase this content:

@echo Set objShell = CreateObject("Shell.Application") > %temp%\sudo.tmp.vbs
@echo args = Right("%*", (Len("%*") - Len("%1"))) >> %temp%\sudo.tmp.vbs
@echo objShell.ShellExecute "%1", args, "", "runas" >> %temp%\sudo.tmp.vbs
@cscript %temp%\sudo.tmp.vbs
and save it as SUDO.cmd.

Now copy the cmd to your system32 folder.
When you now want to run a programm with admin rights type this:

sudo cmd /k javaw.exe JAVA file

Now accept the UAC prompt.
Hope this helps.
André"A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/

Read other 14 answers
RELEVANCY SCORE 120

recently i ran across a small command line program
that would list all all the new files on your computer
within a specified time(anywhere from 5 seconds to
months)you could also specify a drive or any folder etc.
it would output what it found to a text file,and open
that file in notepad.
I cant remember its name or where i found it.
anyone out there know of a program as such ,and where
it can be found.
It is very similar to the way the output log looks(after you run
ComboFix) and shows all the new programs in the last 30 days.

thanks

A:small command line program?

Is this what you mean, from here

Read other 4 answers
RELEVANCY SCORE 120

hi there

can anyone up/give a link to get a uharc archiver/extractor and a command line doc cos i want to use the program and make my own own uharcs

thanks
 

A:uharc program + command line

"uharc" to Google gives a huge choice...
 

Read other 2 answers
RELEVANCY SCORE 120

Hello.
How can I reload a program via "cmd"? I don't like to "taskkill" it or... I just wanted to reload it.

Thank you.

Read other answers
RELEVANCY SCORE 120

i want to run a command line program as part of the boot process (like one does chkdsk /f for the system disk) but don't know how to (chkdsk does it automatically this one doesn't provide an automatic option built in)

A:want to run a command line program at boot

Try a ERD commander, it will allow you to do more than just use command prompt.

Read other 4 answers
RELEVANCY SCORE 119.6

Somehow the line that you put web sites -- after the http --has disappeared. I'm sure that there's a simple way to get it back but I'm new to WIN XP. Can someone help.
 

A:Lost command line -- line with site addresses WinXP

I think you are talking about the address bar in a web browser???

You did not mention what browser you are using. For Internet Explorer 6, right click in any other visible menu bar and then make sure that "Address Bar" is checked in the box that pops up. This may work for other versions of Internet Explorer.
 

Read other 3 answers
RELEVANCY SCORE 119.2

I have a problem running a task with Task Scheduler. The task doesn't run. I have to debug it. When I try to make it run from the app a message appears on a command line message, but it appears and disappears so quickly that I can't read it. To fix the problem I need to read it to know what is going on.

Can someone please tell me how to stop that command line window message from closing, please?

A:Stop Command Line Window Message From Closing

can you run the program from the command line?

open a new cmd window go to Run and type in cmd.exe

when it opens it should be in c:\windows

navigate to the folder, run the file

Read other 9 answers
RELEVANCY SCORE 118.4

Hi

may i know the firewall command line to block a program in and out?
i did a search a lot ,but i need only the command line to block a program

thanks

A:may i know the firewall command line to block a program?

netsh advfirewall firewall add rule name="My Application" dir=in action=allow program="C:\MyApp\MyApp.exe" enable=yes

Read other 5 answers
RELEVANCY SCORE 118.4

In Windows I have Scite (a text editor) set as the default program to open .pl files. That's fine when using explorer. But on the command line I would like to have a different program open .pl files. So basically, different defaults for explorer and cmd. How would I do this?

A:Associate different default program with ext for command line only

When using command line, can you use:
path to different app [space] path to pl file

Read other 2 answers
RELEVANCY SCORE 118.4

In Windows I have Scite (a text editor) set as the default program to open .pl files. That's fine when using explorer. But on the command line I would like to have a different program open .pl files. So basically, different defaults for explorer and cmd. How would I do this?

Read other answers
RELEVANCY SCORE 118.4

Hello,

How can I run a program from the command line as an administrator. I'm looking for a command line equivalent to right-clicking on the program icon and choosing "Run as Administrator".

A:running program from command line as administrator

Click the start orb, All Programs, Accessories, Right Click on the Command Prompt Icon and choose run as Administrator.

Now you have a command Prompt running as Administrator and Programs launched from there are launched as administrator rights.

Good Luck
Roger

Read other 2 answers
RELEVANCY SCORE 118.4

Hello,

How can I run a program from the command line as an administrator. I'm looking for a command line equivalent to right-clicking on the program icon and choosing "Run as Administrator".
 

A:running program from command line as administrator

runas /user:domain\administrator "path-to-application"
 

Read other 2 answers
RELEVANCY SCORE 118.4

Hi!

I need before calling one program insert text into clipboard.
I can do batch for this, but really don't know any command to send any text to clipboard.
Exist any command or method how to do it?

Thank you for all.
Miro36

Read other answers
RELEVANCY SCORE 118

The default command window font on my W10 Pro is so small as to be unreadable. I changed the cmd.exe font and size properties but that only solves the problem when cmd.exe is run directly. Batch (.bat) files and other programs that open a command window still show in the original tiny font.

I'm going blind here, can someone please tell me how to change this?

A:Cmd window font tiny when running .bat and other command line progs

Originally Posted by thermocycler


The default command window font on my W10 Pro is so small as to be unreadable. I changed the cmd.exe font and size properties but that only solves the problem when cmd.exe is run directly. Batch (.bat) files and other programs that open a command window still show in the original tiny font.

I'm going blind here, can someone please tell me how to change this?



I've changed my Command Prompt window to display yellow text on blue, changed Font size and changed window size. I went to Start, All apps, scrolled down to the W section, scrolled down to Windows System, right-clicked Command Prompt, clicked More and chose Open File location. Then I right-clicked that shortcut and Properties. The same settings affected both Command Prompt choices on the right-click of the Start menu.

Read other 1 answers
RELEVANCY SCORE 117.2

Hi everyone, what is the commmand for command prompt to stop a process? What i would like to do is make a shortcut to stop the KBD.exe process. The reason for that is when someone in my family puts a disk in, plays a game, and sometimes when they take the disk out it complains about there being no disk in the drive. The only way to shut it up is to end the process in the task manager and click cancel on the window. This way is a little to complicated for some of the memebers of my family and i would like to be able to just create a shortcut for it.

A:Whats the command line command to stop a process?

Quote:





Originally Posted by djw2009913


Hi everyone, what is the commmand for command prompt to stop a process? What i would like to do is make a shortcut to stop the KBD.exe process. The reason for that is when someone in my family puts a disk in, plays a game, and sometimes when they take the disk out it complains about there being no disk in the drive. The only way to shut it up is to end the process in the task manager and click cancel on the window. This way is a little to complicated for some of the memebers of my family and i would like to be able to just create a shortcut for it.




Click on Start, then run
type in cmd to get to command prompt
type in taskkill /f kbd.exe

The forward slash /f forces it to kill the process.
Here is link for some examples

http://www.tech-recipes.com/windows_tips446.html

Read other 2 answers
RELEVANCY SCORE 117.2

Hi I have an application that I'm stumped with.
What I have is a service that's running and while it is running starting another program results in the second program "hanging" until the service is stopped. Once the service is stopped the second program completes startup and runs fine. I should also note, the second program continues to run fine even after the service is restarted.

I have been reading about "net conmmands and thought they were the answer but I read this :
NET STOP Stops services. NOTE: Services cannot be stopped from a command prompt within Windows.

on the following webpage:
http://www.computerhope.com/nethlp.htm#03

I have proved this doesn't work by trying it with a command prompt with no success.
Or maybe I just could not figure out what the correct name for the service was.
Does anyone know how to determine the actual name of a service? What appears in the "services" window does not seem to be the actual name I would call in a command line.

Hope someone has some ideas,
Thanks in advance,
DF
 

A:Starting and stopping services from another program or command line

You can start and satop services from a command line by using its real or display name. The name of the service is on the first tab of each service in the services MMC console.

For example, The DHCP Client can be stopped using it real name (Dhcp) or its display name in quotation marks ("DHCP Client").

net stop Dhcp
or
net stop "DHCP Client"

Strating is just as easy:

net start Dhcp
or
net start "DHCP Client"

These commands also work just as well from a batch file.
 

Read other 2 answers
RELEVANCY SCORE 117.2

I'm trying to run a program that will prevent Windows 7 from sleeping, then run some batch commands, and finally close the program. The problem is that when I execute the program from the batch file, the processing stops and waits. A simple script such as this doesn't even work:


Code:
path:\insomnia.exe

taskkill /im insomnia.exe
Is there a way to open up a program and then move on to the next set of commands without waiting?

A:Command Line Program Open Freezes Execution

Code:
path:\insomnia.exe

taskkill /im insomnia.exe
Hi -

Try this - copy into batch file -

Code:

taskkill /im insomnia.exe /f

To execute it, RIGHT-click on your batch file, select "Run as Administrator"

Your call, but I would just change the power option to "high performance" when you don't want it to sleep. Please note: I have NOT tested the insomnia.exe app.

Regards. . .

jcgriff2

`

Read other 9 answers
RELEVANCY SCORE 116

Hi there,

I'm looking to create a script that will change the default program for opening PDFs. Is there a way to do this from the command line or via the registry?

An example would be great!
If all else fails I've created a GPO to do this, but a script would be ideal.
Thanks all,
Dave

A:Change Default Program for file - Command line or Registry

Hi,

We can achieve it through command line.
Please follow the steps.

      
Open an elevated command promote.      
Use FTYPE {fileType}={commandString} to creat a file type and associated command to open the file.      
Use ASSOC {.fileExtension}={fileType}

For example:
assoc .txt=txtfile
ftype txtfile=c:\Program Files\Windows NT\Accessories\wordpad.exe "%1"

For more information, please refer to the link as below.
Associate a File Type with a Specific Program
http://superuser.com/questions/29717/associate-a-file-type-with-a-specific-program

Please note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Hope this helps,
Ada Liu


We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.

Read other 2 answers
RELEVANCY SCORE 115.2

Hello all, what command would I run to set JUST the secondary DNS on clients machine, and nothing else? I appreciate the help! :)

A:[SOLVED] What is the command line command to set up secondary DNS?

:) Anyone have any idea? Maybe this can be moved to the 2003 server forum?

Read other 3 answers
RELEVANCY SCORE 114.8

Hello,

Post number one...please don't yell at me if I screw something up...

I'm attempting to re-create a batch file I made several years ago for XP that I've since lost. I am attempting to write a batch file to run a program that prompts for user input. I need to automate the input of the data, but I don't have access to the source of the program. Any help would be greatly appreciated.

Thanks,
Ben

A:Using batch to input prompted data while running a program in command line

Thank you for your question benhavo. My name is benhavo, and I have your answer...

In case anyone runs into the same question, I figured out a solution that works fine for me:

echo input| command

input = the value you are inputting to the prompt
command = call to the program

Read other 1 answers
RELEVANCY SCORE 110.8

I came across this (hopefully) helpful article about command line basics.

Speaking UNIX: Command the power of the command line

Learn the basics of the UNIX shell and discover how you can use the command line to combine a finite set of UNIX utilities into data transforms.
 

A:Command the power of the command line

Good stuff, but then there's something wrong with his verbatim copy of a directory... You should add the p option to the tar extraction command, in order to preserve file attributes (ctime, mtime, atime, owner, group) - ie, tar xpvf and not tar xvf.

I use this regularly in order to make verbatim copies of a directory:

(cd /path/to/src/dir && tar cf - .)|(cd /path/to/dst/dir && tar xpvf -)
 

Read other 3 answers
RELEVANCY SCORE 110.8

I came across this (hopefully) helpful article about command line basics.

Speaking UNIX: Command the power of the command line

Learn the basics of the UNIX shell and discover how you can use the command line to combine a finite set of UNIX utilities into data transforms.
 

A:Command the power of the command line

Good stuff, but then there's something wrong with his verbatim copy of a directory... You should add the p option to the tar extraction command, in order to preserve file attributes (ctime, mtime, atime, owner, group) - ie, tar xpvf and not tar xvf.

I use this regularly in order to make verbatim copies of a directory:

(cd /path/to/src/dir && tar cf - .)|(cd /path/to/dst/dir && tar xpvf -)
 

Read other 3 answers
RELEVANCY SCORE 110.8

I need some help, but probably don't have a full grasp on the problem, so don't really know how to ask for help. I will describe what I have and hopefully, it will help to describe what I want to accomplish.

I have a Linksys router with DD-WRT installed. I am able to SSH/Telnet into the router. I would like to be able to reboot or shutdown my computer remotely from the command line during a Putty/SSH session.

Here is how I make the session connection: In Putty, I enter
the static IP address and port (default is 22) under "Session".
Under "SSH > Tunnels" I enter the "source port" (again, 22)
and "Destination" (ex - 192.168.0.5:3389), then hit "Add", then "Open"

This opens a command line, where I enter "user" and "pwd"
(the defaults are root and admin). I am now connected to my
router and I can use Remote Desktop to get control over my
remote computer (using XP Pro).

My question is: While at the command prompt, is there a
command to reboot or shutdown my remote computer? Is there a list
of other commands that are available here?

BTW, at the command prompt, I can start my remote computer (Wake on LAN) by typing the following command:
/usr/sbin/wol -i 192.168.0.5 MA:CAD:RE:SS:44
(where the last portion is the MAC address)
 

Read other answers
RELEVANCY SCORE 110.8

I want to create a setup whereas a command line command can be run from any directory/folder, without having to be in the directory/folder whereas the command line command resides ?

A:Executing command line command anywhere ?

Add the directory the cmd or bat files resides in to the PATH environment variable.





Quote:
To check or modify the system PATH environment variable, do the following:

XP: Right clock on My Computer
Vista, 7: Right click on Computer
Windows 8, 10: Right click on This PC

Select Properties

Vista, 7, 8, 10: Click on Advanced System Properties on the left

On the Advanced tab, click on Environment Variables
Under System Variables, scroll down to Path
Select it then click Edit

An easy way to look at all of it is to right click on the highlighted Variable Value field and select copy, then start Notepad and paste the data into there. That way you can easily look at all of it.

It's also a lot easier to make changes in Notepad then copy and paste the changed data back into the Path Variable Value field.

Click Ok as needed to exit when done

Read other 4 answers
RELEVANCY SCORE 107.2

I want to use the command line to open the "Custom sizing options" window in Windows 10, please view the image, thank you.

Read other answers
RELEVANCY SCORE 106.8

When I try to use the Run command module to run something like ipconfig, the little black window (go ahead and laugh... no idea what to call it) opens as expected, and i can catch a quick glimpse of the expected text. Then it vanishes before I can actually read anything. It can't be open for more than 1 second.

I'm scanning for viruses now.

(XP Pro with all critical updates installed.)

IBM Thinkpad T40
 

A:"Run" command line window flashes and closes!!

Read other 6 answers
RELEVANCY SCORE 105.2

when i try to open my yahoo messenger account or a html doc. i get this pop up message: "there was a problem sending a command line to program". any suggestions? thanks

A:"there was a problem sending a command line to program"

Try booting to Safe Mode with Networking, see how things behave.

If the problem goes away then something is starting at boot time that is causing the problem, or a Internet Explorer Add-on is causing the problem.

Boot normally, then start IE without Add-ons.

Click on Start, type iexplore -extoff and press Enter.

You will get an IE window like this:

Click on Home to go to your normal Home page. See how things are. If okay then use Tools / Manage Add-ons to disable them a few at a time till you find the culprit.

If that doesn't make any difference then Use msconfig to determine what is causing the problem

This is a good tutorial on using msconfig in Windows 7:
How to use msconfig in Windows 7

Click on Start, type msconfig and press Enter.
Click on the Startup tab, record what is currently starting then click the Disable All button.
Reboot and see if it runs better.
If yes then use msconfig to enable several items at a time till you find the culprit.

If no, start msconfig and click on the Services tab.
Check the Hide All Microsoft Services box, record what is currently starting then click the Disable All button.
Again, do a regular boot, see if it runs normal.
If yes then use msconfig to enable services till you find the culprit.

Once you've found the culprit, uninstall it or find out how to eliminate it from your system. Simply disabling it in msconfig is a temporary fix at best.

Enable everything else you disabled.

Read other 6 answers