How to code batch file?

T

Twayne

In
Unknown said:
Have you investigated MSE?

Yes; nothing impressive, but might be OK; not willing to run it long term
right now. I know it errs on the EICAR virus test.
 
T

Twayne

In
Unknown said:
PS Do you consider 22 icons in the system tray a clean
machine???? 96 Processes running????
Are you insane?????

I'm sure I can run circles around your machine any day of the week and
without making any changes to tweak anything in any way. Booting/Shutdowns
are fast, all is efficiently processing what it's supposed to process. I
figured I'd out some more of your ignorance with those two items, BTW. Those
quantities are meaningless to anything related to speed; if
eliminating/getting rid of them speeds anything up for YOU, then you have
other problems. That is, other problems in addition to your ignorance and
lack of experience/knowledge of several subjects that even many newbies know
these days.

Too bad you can't see any of the trees in the forest; most people can't see
the forest for the trees, but you seem to be just the opposite. "Tree?
What's a tree?" makes for a good analogy in your case.
 
M

Mark Blain

I need to consistently download patch on following web site, but the
file name keeps changing based on date, for example
http://definitions.symantec.com/defs/20100421-002-x86.exe
http://definitions.symantec.com/defs/yyymmdd-002-x86.exe

Does anyone have any suggestions on how to code a batch file to
download the patch based on specific date format? so I can set
schedule task to run it. Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric

Try this batch file. Adjust as needed for the date format produced on
your computer. The numbers are the starting column and the number of
columns to extract.

echo %%date%%=%date%
set mm=%date:~4,2%
set dd=%date:~7,2%
set yyyy=%date:~10,4%
echo %yyyy%%mm%%dd%
pause

The output should look something like:
echo %date%=Sun 04/25/2010
%date%=Sun 04/25/2010
set mm=04
set dd=25
set yyyy=2010
echo 20100425 20100425

pause
Press any key to continue . . .
 
U

Unknown

You lie through your teeth. 22 icons in the tray means they are in memory.
Therefore bootup time has to be long.
Same holds true for 96 processes. Memory swaps must be often.
There is no psychiatrist or psychologist that would be of any help in
understanding you. Perhaps a
anthropologist.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top