command line arguements - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
Thread Tools Display Modes
Old 06-20-2005, 11:39 AM   #1 (permalink)
Master Techie
Join Date: Jun 2005
Posts: 2,134
Default command line arguements

i know you can add parameters to a command line to make various programs run in different ways/setting, but how do you actually make this work? i ve tried using cammand prompt and stuff, but nothing will actually open the program, it just says its not found, ot something like that

joshd is offline  
Old 06-20-2005, 11:55 AM   #2 (permalink)
Ultra Techie
Join Date: Jun 2005
Posts: 584
Send a message via ICQ to daappleby

you will need to be in the directory for the application, and the application itself will have to support the switches. Once you are in the directory you can type the program name and then /? to see a list of the switches associated with that program.


Help us Help you:

1) <b>RTFM</b>
2) Search TF using <b>more than one</b> keyword or combination of words
3) Post specific details. We need your computer specs, your OS, and any details from the error messages you get.
daappleby is offline  
Old 06-20-2005, 01:39 PM   #3 (permalink)
Master Techie
Join Date: Jun 2005
Posts: 2,134

what do you mean? im afrain ur going to have to explain more simply...
joshd is offline  
Old 06-21-2005, 11:58 AM   #4 (permalink)
Junior Techie
Join Date: Jun 2005
Posts: 94

Like so:

When you go to a program using the GUI (that is, by clicking on folders until you find it) the folder it's in should have a text box at in a bar at the top labelled "address". The contents of this text box start "C:\" or some other letter of the alphabet. This is the directory the program is in.

If you start the program by clicking on a shortcut on the desktop, right click the shortcut and select "properties". There should be a text box labelled "target". The contents of this text box is the directory.

Sometimes there's no such textbox. In that case the directory is almost certainly "C:\documents and setting\your account name\desktop"

Once you know the directory (called the path) you can use it in one of two ways:

Type cd "path" (use the quotes) in the command prompt. The prompt will change to the path. This means that you are working "in" that directory. Any files or programs will be assumed to be in that directory unless you specify otherwise.

Alternatively, you can type whenever you mention the program "path\program name". (Aain use the quotes).

Nothe that you can't be in two paths at once. So if you a program that's in one folder with a file that's in another, you'll have the path for at least one.

Hope this is clear enough.
ever_thus is offline  
Old 06-22-2005, 01:01 PM   #5 (permalink)
Master Techie
Join Date: Jun 2005
Posts: 2,134

nah i still cant get it to work. am i meant to type "path" into the command prompt? it doesnt work!
joshd is offline  
Old 06-22-2005, 02:34 PM   #6 (permalink)
Master Techie
Join Date: Oct 2003
Posts: 2,258

Like this...first, all quotes are for reference, not for use in the actual execution.
take the program c:\winnt\system32\telnet.exe
from the command line, which you get to by going to start, then clicking on run, and typing the following(for win2k and XP): "cmd.exe" no quotes.
from here, you will type, "cd\" no quotes. This will get you to the base directory. then you type: "cd winnt\system32"
Then type "telnet.exe /?" This will show you the command line options available to you.
something like this:
telnet [-a][-e escape char][-f log file][-l user][-t term][host [port]]
-a Attempt automatic logon. Same as -l option except uses
the currently logged on user's name.
-e Escape character to enter telnet client prompt.
-f File name for client side logging
-l Specifies the user name to log in with on the remote system.
Requires that the remote system support the TELNET ENVIRON option.
-t Specifies terminal type.
Supported term types are vt100, vt52, ansi and vtnt only.
host Specifies the hostname or IP address of the remote computer
to connect to.
port Specifies a port number or service name.

Hope that helps you understand it a little better.
Inaris is offline  
Old 06-22-2005, 02:41 PM   #7 (permalink)
Master Techie
Join Date: Jun 2005
Posts: 2,134


i can do it now

thanks a lot guys

joshd is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 12:21 AM.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.