- Apr
- 18
- 0
Ran into a head-scratcher tonight, can't find it in the help file so thought I'd pop in here with a question:
I'm trying to create an ALIAS that runs three commands:
date /t "%F"
time /t "%T"
free C:
Basically giving a date/time stamp on the output of the command to show free space on the C: drive. What I tried to do, and which didn't work, was:
ALIAS fcx = *date /t "%F" && time /t "%T" && free C:
(Note: I have an alias fc which just has free c: as the sole command. fcx is "experimental."
Now, I may be showing some "Linux-ese" here by using the && to put multiple commands on the same line, but I don't remember what the delineator is between commands on the same line, one which the system won't apparently interpret as "commenting-out" everything after.
Recommendations?
(Note: batch-file commands are something I haven't done very much with for several years. I used to be VERY good at it, back in my DOS days, and between that and dBASE I could make a computer do just about do anything I wanted it to do! Time has taken its toll on my brain cells, however. I'm thinking some of this stuff was stored in the brain cells that were damaged due to the excesses of my intemperate youth....)
Many thanks in advance for any assistance/recommendations you can provide. //Steve//
I'm trying to create an ALIAS that runs three commands:
date /t "%F"
time /t "%T"
free C:
Basically giving a date/time stamp on the output of the command to show free space on the C: drive. What I tried to do, and which didn't work, was:
ALIAS fcx = *date /t "%F" && time /t "%T" && free C:
(Note: I have an alias fc which just has free c: as the sole command. fcx is "experimental."
Now, I may be showing some "Linux-ese" here by using the && to put multiple commands on the same line, but I don't remember what the delineator is between commands on the same line, one which the system won't apparently interpret as "commenting-out" everything after.
Recommendations?
(Note: batch-file commands are something I haven't done very much with for several years. I used to be VERY good at it, back in my DOS days, and between that and dBASE I could make a computer do just about do anything I wanted it to do! Time has taken its toll on my brain cells, however. I'm thinking some of this stuff was stored in the brain cells that were damaged due to the excesses of my intemperate youth....)
Many thanks in advance for any assistance/recommendations you can provide. //Steve//