Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 04-06-2008, 07:40 AM   #1 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Quick Batch

I'm sure someone can whip this up real quick for meh :laughing:



I run a few cameras around my house and all images are dumped in

F:\Camera1

-----

At 5AM every day I want a batch to run automatically and delete this folder..


Cheers,

~ Tkey
Yek is offline  
Old 04-06-2008, 09:20 AM   #2 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,688

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: Quick Batch

Make a simple batch to delete the folder, then just run it everyday in Scheduled Tasks (in Control Panel).

Code:
rmdir F:\Camera1

__________________

Need website help? PM me!
CrazeD is offline  
Old 04-06-2008, 01:31 PM   #3 (permalink)
 
Monster Techie

Join Date: May 2004

Location: /usr/root/mn/us

Posts: 1,121

bla!! is on a distinguished road

Default Re: Quick Batch

close

Code:
rmdir f:\camera1 /s /q
the /s says to delete the directory and everything in it
the /q says don't prompt, just say yes to everything
__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Old 05-26-2008, 08:40 AM   #4 (permalink)
 
Banned

Join Date: May 2008

Posts: 5

cybersomeone is on a distinguished road

Default Re: Quick Batch

OR..
Code:
del F:\Camera1

cybersomeone is offline  
Old 05-27-2008, 12:02 AM   #5 (permalink)
 
Monster Techie

Join Date: May 2004

Location: /usr/root/mn/us

Posts: 1,121

bla!! is on a distinguished road

Default Re: Quick Batch

I see that the guy above is now banned, but just so no one is confused, what he posted will not work. Del removes files only, not directories.
__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Old 05-28-2008, 06:40 PM   #6 (permalink)
MrCoffee's Avatar
 
Monster Techie

Join Date: Feb 2006

Location: UK

Posts: 1,852

MrCoffee is on a distinguished road

Default Re: Quick Batch

Well I would guess that tkey wants to delete the content of the folder (I can't think why he would want to delete the folder if its in daily use), in which case del would be the appropriate command.

del f:\camera1\*.* /q
__________________
Intel core I7 920
GA-EX58-UD3R
6GB OCZ platinum 1600
XFX HD4890
Noctua nh-u12p
Corsair HX520
Antec 300
Samsung 1TB F1 Spinpoint
Samsung SM2443BW 24"
MrCoffee is offline  
Old 05-29-2008, 12:49 AM   #7 (permalink)
 
Monster Techie

Join Date: May 2004

Location: /usr/root/mn/us

Posts: 1,121

bla!! is on a distinguished road

Default Re: Quick Batch

It all depends on what he would like to do.

Del only deletes files. If there were any folders under f:\camera1 they would still be there including files within them if you use just del.
__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Old 05-31-2008, 12:28 PM   #8 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Re: Quick Batch

Deleting the folder is what I wanted, a simple rmdir command did it, the prog auto creates the new folder automatically anyhow

~ Thread closed.
Yek is offline  
Old 05-31-2008, 02:27 PM   #9 (permalink)
Mak213's Avatar
 

Join Date: Sep 2004

Location: C:\Windows\System32

Posts: 25,722

Mak213 is a name known to allMak213 is a name known to allMak213 is a name known to allMak213 is a name known to allMak213 is a name known to allMak213 is a name known to all

Default Re: Quick Batch

Thread Closed at OP request.
__________________
R.I.P. Danny L. Trotter
14 Nov 1945 - 4 Sept 2009
Images created by CarnageX | Decaptured...Listen! | Visit Baezware!! | You've been Mak'd! | 儿做好
I do not accept support questions via EMail, PM, IM or my Spaces page! .:|:. This is what happens when an unstoppable force meets an immovable object.
Thanks to all the guys on the staff for your support in my time of need. Hefe you are my personal Hero for your contribution.



<<<< If I help you, or you just like what I said, rep me
Mak213 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with a Dos batch file Jakes55 Programming Discussions 2 03-02-2008 09:04 PM
Batch scripting: Startup applications and close batch file LincolnX Windows Operating Systems and Software 7 01-17-2008 08:50 PM
Batch file to execute upon restart/shutdown mtbjunkie Windows Operating Systems and Software 7 12-12-2007 06:45 PM
Batch? Yek Programming Discussions 3 10-28-2007 03:19 PM
Saving Quick Launch Icons cliffhucker Windows Operating Systems and Software 6 06-25-2007 07:37 PM