pleZZZ Help Me ...............

Microsoft Office 2010 home and student
October 29, 2011 at 12:07:36
Specs: Windows XP, 3GHz
I am a college student
Professor asked me the question
Tried very much to find his answer, but I did not find
They advised me to write this question on your site this
I want to write a program on batch files
Search for a file
If this file exists on my computer do I open the file
If this file does not exist on my computer do I download this file from the internet then I do open the file
If possible I want to answer as soon as necessary and
I have to hand over this issue tomorrow

See More: pleZZZ Help Me ...............

Report •

October 29, 2011 at 14:21:31
I don't know how to download silently from the internet vai batch, but you can make the batch make the file itself.
It could take a while if you need to download a big execution, though.

@echo off
title Test
REM -----------------------------------------
If exist test.txt goto OPENIT
REM -----------------------------------------
echo. 2>test.txt
ECHO TEST>>test.txt
REM -----------------------------------------
ping localhost -n 2 >nul
start test.txt
goto EXIT
REM -----------------------------------------

Report •
Related Solutions

Ask Question