47Views4Replies

Author Options:

At BAT file programming i wanted to find a file and delete it then goto a page..? Answered

at BAT file programming i wanted to find a file and delete it then goto a preffered page..

i've found:
if example.file exists goto a
if example.file does not exist goto b

but it's only for a single file, doesn't search the whole drive or pc.

i've found:
dir C:\example.file \s

this thing searches whole C drive,
but how to make it to go to a preferred page??
any way??
very very thanks in ADVANCE.. :D

Discussions

0
None
SA-DIY

4 years ago

Do you want it go to a webpage ? If that's the case then simply use this script:

start www.google.com

0
None
rafsan.saminSA-DIY

Answer 4 years ago

i'm sayin' to search whole pc for a single file, and then ridirect to a page of bat script, not webpage...

0
None
rafsan.samin

4 years ago

i'm thinking about creating a bat file finder and deleter, so i'm sayin' it... @Downunder35m

0
None
Downunder35m

4 years ago

It is easier to know the file location.

If you have to search the file first you need an algorithm to compare the search results to your needs.

It is quite unusual to do file operations the way you intent to.