In teh above example, i made simiar to alias - dira to be executed as dir /A, only thing is you will have to use it with percentages.. as in %dira%
/ilan
Using the "set" command is not, in my opinion, a very efficient way for an alias to be created or used. Simply because of the way it needs to be typed on the command line or in a script. Also you can't use arguments with it.
The above command will not work. It would work if you only used the command with no argument capture but what would be the point? The whole idea of an alias is to be able to create a command with options and arguments without having to type the entire command every time you want to use it. In these examples we are using "dira." I count 4 characters. To use the "set" method you would be typing 6 characters to produce the same command if you were to use DosKey to produce the alias.
The "set" command, in my opinion, should only be used to store variables.
This question maybe in the wrong category but I'm posting here due to urgency.
In DOS is there a command to perform a similar function to spool command in SQL or Script command in UNIX?
I want to print all command line output to a file but I don't want to use the echo command for each line.
... (2 Replies)
I have navigated every DOS and UNIX FAQ to find the DOS equivalent of the UNIX ps command (ps -f would be even better) but all listings of DOS<>UNIX commands do not have it (they all have the same basic commands listed). DOS must have a way of detecting running processes and TSRs. mem /c is the... (7 Replies)
I need to set the serial port attributes to 9600,7,E,1 in order to read and write data to it from within a Foxpro program. Unfortunately there is no function in Foxpro to set the line attributes, only open. close read and write.
Stty only works on the stdout and stdin in this release, and the... (3 Replies)
Dear All
Could you please advice how do we convert a unix file to dos
I know one command,ux2dos, which somehow does not work to give desired output
Inputs on this is appreciated
Thanks,
Suresh (3 Replies)
In Unix I can use command line to do a find for files older than so many days and remove them. I can also capture the date to see if its a saturday and do something different. Are there any dos/intel command line equivalent commands to do this on a windows 2003 server? This is from an... (6 Replies)
i know after you do something in smitty via the gui, you can click something in smitty that will show you how to do the same thing via the command line, (not using the gui) can anyone tell me how (2 Replies)
Hi,
The title of this post is a little vague but I couldn't think of what to call it.
In Unix you can perform the following command
ftp -v IPADDRESS <<END
put FILE
END
In a DOS command prompt, is it possible to do the same kind of thing that the "<<END" does?
So for example, ... (4 Replies)
Well,
this command has served me quite well under DOS
for %%X in (*.txt) do COMMAND
however in linux it just outputs:
"./install.sh line 1: '%%x': not a valid identifier.
Ideas ?
Thanks in advance (2 Replies)
Discussion started by: pasc
2 Replies
LEARN ABOUT HPUX
install
install(1M)install(1M)NAME
install - install commands
SYNOPSIS
dira] dirb] dirc] group] user] file [dirx ...]
DESCRIPTION
is a command most commonly used in ``makefiles'' (see make(1)) to install a file (updated target file) in a specific place within a file
system. Each file is installed by copying it into the appropriate directory, thereby retaining the mode and owner of the original command.
The program prints messages telling the user exactly what files it is replacing or creating and where they are going.
is useful for installing new commands, or new versions of existing commands, in the standard directories (i.e. etc.).
If no options or directories (dirx...) are given, searches a set of default directories and in that order) for a file with the same name
as file. When the first occurrence is found, issues a message saying that it is overwriting that file with file (the new version), and
proceeds to do so. If the file is not found, the program states this and exits without further action.
If one or more directories (dirx ...) are specified after file, those directories are searched before the directories specified in the
default list.
Options
Options are interpreted as follows:
Installs a new command
(file) in the directory specified by dira, only if it is not found. If it is found, issues a message saying that the
file already exists, and exits without overwriting it. Can be used alone or with the option.
Forces file to be installed in given directory, whether or not one already exists. If the file being installed does not
already exist, the mode and owner of the new file will be set to and respectively. If the file already exists, the
mode and owner will be that of the already existing file. Can be used alone or with the or options.
Ignores default directory list,
searching only through the given directories (dirx ...). Can be used alone or with any other options other than and
If file is not found in any of the searched directories, it is put in the directory specified in dirc. The mode and
owner of the new file will be set to and respectively. Can be used alone or with any other options other than and
If file is found, this option saves the ``found'' file by copying it to in the directory in which it was found. This
option is useful when installing a normally busy text file such as or where the existing file cannot be removed. Can
be used alone or with any other options other than
Causes file to be owned by group group. This option is available only to users who have appropriate privileges. Can be
used alone or with any other option.
Causes file to be owned by user user. This option is available only to users who have appropriate privileges. Can be used
alone or with any other option.
Suppresses printing of messages other than error messages.
Can be used alone or with any other options.
When no directories are specified (dirx ...), or when file cannot be placed in one of the directories specified, checks for the existence
of the file If exists, it is used to determine the final destination of file. If does not exist, the default directory list is further
scanned to determine where file is to be located.
The file contains a list of absolute pathnames, one per line. The pathname is the "official" destination (for example of the file as it
appears on a file system. The file serves as a master list for system command destinations. If there is no entry for file in the file the
default directory list is further scanned to determine where file is to be located.
Cross Generation
The environment variable is used to locate the locations file (in the form This is necessary in cases where cross generation is being done
on a production system. Furthermore, each pathname in is appended to (for example, and used as the destination for file. Also, the
default directories are also appended to so that the default directories are actually and
The file does not exist on a distribution tape; it is created and used by local sites.
WARNINGS
cannot create alias links for a command (for example, vi(1) is an alias link for ex(1)).
SEE ALSO make(1), cpset(1M).
install(1M)