Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Batch File program to search all physical drives and delete .jpg , .jpeg files
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
freeuserlogin  
View profile  
 More options Nov 11 2009, 7:28 pm
Newsgroups: microsoft.public.windows.server.scripting
From: freeuserlogin <freeuserlogin.41i...@DoNotSpam.com>
Date: Thu, 12 Nov 2009 00:58:41 +0530
Local: Wed, Nov 11 2009 7:28 pm
Subject: Batch File program to search all physical drives and delete .jpg , .jpeg files

hi guys i am  kittu

this is my first  post

i am new to batch file programming  and need your help

i need a batch file   program    when  executed  

it has to  search all physical drives in  my  pc    and  delete  files
of    .jpg and .jpeg    extension

i dont  want to   define  the path of  the  file   located at
so  it has to search  all  the  drives and  delete  files

Thank you

--
freeuserlogin
------------------------------------------------------------------------
freeuserlogin's Profile: http://forums.techarena.in/members/153950.htm
View this thread: http://forums.techarena.in/server-scripting/1269965.htm

http://forums.techarena.in


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
contrex  
View profile  
 More options Nov 11 2009, 8:39 pm
Newsgroups: microsoft.public.windows.server.scripting
From: contrex <mike.j.har...@gmail.com>
Date: Wed, 11 Nov 2009 12:39:49 -0800 (PST)
Local: Wed, Nov 11 2009 8:39 pm
Subject: Re: Batch File program to search all physical drives and delete .jpg , .jpeg files
Why?

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pegasus [MVP]  
View profile  
 More options Nov 11 2009, 8:49 pm
Newsgroups: microsoft.public.windows.server.scripting
From: "Pegasus [MVP]" <n...@microsoft.com>
Date: Wed, 11 Nov 2009 21:49:26 +0100
Local: Wed, Nov 11 2009 8:49 pm
Subject: Re: Batch File program to search all physical drives and delete .jpg , .jpeg files

"freeuserlogin" <freeuserlogin.41i...@DoNotSpam.com> wrote in message

news:freeuserlogin.41i6vb@DoNotSpam.com...

You are actually in the wrong newsgroup. This group concentrates on VB
Script questions. Batch files are mostly answered in alt.msdos.batch.nt.
Since your question is quite simple, here is a batch file solution:

@echo off
for /F %%a in ('mountvol ^| find ":\"') do (
  dir %%a 1>nul 2>nul
  if not ErrorLevel 1 (
    echo del /s /f  %%a*.jpg
    echo del /s /f  %%a*.jpeg
  )
)

To activate the batch file you need to replace these lines
    echo del /s /f  %%a*.jpg
    echo del /s /f  %%a*.jpeg
with these:
    del /s /f  %%a*.jpg
    del /s /f  %%a*.jpeg
Note that this is quite a powerful command. It will do exactly what you
asked for: Delete each and every .jpg and .jpeg file on all local drives.
Are you sure that you want to go ahead with your plan?


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
contrex  
View profile  
 More options Nov 11 2009, 10:34 pm
Newsgroups: microsoft.public.windows.server.scripting
From: contrex <mike.j.har...@gmail.com>
Date: Wed, 11 Nov 2009 14:34:31 -0800 (PST)
Local: Wed, Nov 11 2009 10:34 pm
Subject: Re: Batch File program to search all physical drives and delete .jpg , .jpeg files
On 11 Nov, 20:49, "Pegasus [MVP]" <n...@microsoft.com> wrote:

> Are you sure that you want to go ahead with your plan?

Probably on somebody else's computer.

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Al Dunbar  
View profile  
 More options Nov 12 2009, 4:50 am
Newsgroups: microsoft.public.windows.server.scripting
From: "Al Dunbar" <aland...@hotmail.com>
Date: Wed, 11 Nov 2009 21:50:19 -0700
Local: Thurs, Nov 12 2009 4:50 am
Subject: Re: Batch File program to search all physical drives and delete .jpg , .jpeg files

"Pegasus [MVP]" <n...@microsoft.com> wrote in message

news:eHzz2BxYKHA.1652@TK2MSFTNGP05.phx.gbl...

I thought that this newsgroup was language neutral. There certainly are
non-vbs threads, and, unlike microsoft.public.scripting.vbscript, this one
doesn't have vbscript in its name. ;-)

/Al

<snip>


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google