50Views4Replies

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

The forums are retiring in 2021 and are now closed for new topics and comments.
0
SA-DIY
SA-DIY

5 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
rafsan.samin
rafsan.samin

Answer 5 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
rafsan.samin
rafsan.samin

5 years ago

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

0
Downunder35m
Downunder35m

5 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.