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 DEBIAN
synce-pcp
PCP(1) http://synce.sourceforge.net/ PCP(1)NAME
pcp - copy files
SYNOPSIS
pcp [-d LEVEL] [-p DEVNAME] [-h] [:]SOURCE [[:]DESTINATION]
DESCRIPTION
pcp copies a file on a device connected through SynCE or between a device connected through SynCE and host PC.
Forward slashes ('/') in remote file names specified on the command line are converted to backward slashes ('').
This tool must be run as the same user as the dccmd daemon.
OPTIONS -r Copy directories recursively.
-d LEVEL
Set debug log level:
0 - No logging (default)
1 - Errors only
2 - Errors and warnings
3 - Everything
-p DEVNAME
Use the device with the given name, instead of the default.
-h Display help message.
[:]SOURCE
Full path to the source filename. When the filename is prefixed with a colon (':'), it will be treated as a remote filename, other-
wise as a local filename.
[:]DESTINATION
Full path to the destination filename. When the filename is prefixed with a colon (':'), it will be treated as a remote filename,
otherwise as a local filename.
If this parameter is omitted and the source filename is local, the local file will be copied to a file with the same name in the "My
Documents" directory on the device connected through SynCE.
If this parameter is omitted and the source filename is remote, the remote file will be copied to a file with the same name in the
current directory.
EXAMPLES
Copy a file from host computer to remote device:
pcp download/game.cab ":/Temporary Files/game.cab"
Copy a file from remote device to host computer:
pcp ":/My Documents/snore.wav" /tmp/snore.wav
Copy a file from host computer to remote device into the "My Document" folder - you can leave off the last parameter:
pcp "work/mytext.txt"
Copy a file from remote device to host computer into the current directory - you can leave off the last parameter:
pcp ":/My Documents/snore.wav"
Copy a file from one location on the remote device to another:
pcp ":/My Documents/important.pwi" ":/My Documents/important.backup.pwi"
AUTHOR
This manual page was written by David Eriksson <twogood@users.sourceforge.net>.
SEE ALSO synce(1)pcp(1)pls(1)prm(1)pmkdir(1)prmdir(1)The SynCE project November 2002 PCP(1)