Search found 12 matches

by Conk1
21 Jul 2011 06:40
Forum: DOS Batch Forum
Topic: Delete all folders containing a string
Replies: 3
Views: 4403

Delete all folders containing a string

Hello I want to make a batch that deletes these folders and all their contents: C:\found.000\, C:\found.001\, C:\found.002\, etc or more accurately %systemdrive%\found.000 So far I have this: for /d %%X in (found.0*) do rd /a /f /s /q "%%X" However, this only does it if the current directo...
by Conk1
06 Jan 2011 02:59
Forum: DOS Batch Forum
Topic: Hiding programs run from within a batch script
Replies: 8
Views: 11048

Re: Hiding programs run from within a batch script

The batch file does run hidden but unfortunately the programs it runs (inet.cpl and vsp1cln / compcln) seem to force themself to show a window. I had to use start /min in the end.
by Conk1
08 Dec 2010 17:31
Forum: DOS Batch Forum
Topic: Hiding programs run from within a batch script
Replies: 8
Views: 11048

Re: Hiding programs run from within a batch script

Hi

Your link has a password which I don't know.
Unfortunately I need it to remain as a batch file.

Is there any other way?
by Conk1
08 Dec 2010 04:51
Forum: DOS Batch Forum
Topic: Hiding programs run from within a batch script
Replies: 8
Views: 11048

Hiding programs run from within a batch script

Hello, I was wondering how you run a program from inside a batch script whilst keeping the window hidden. I am trying to run programs that are automated tasks - The first commands is for Vista SP2 and the second is for IE7 or above. start /wait %windir%\System32\compcln.exe /quiet start /wait RunDll...
by Conk1
20 Jul 2010 06:32
Forum: DOS Batch Forum
Topic: Referencing all subfolders in a folder
Replies: 4
Views: 5048

Re: Referencing all subfolders in a folder

Thanks once again :)
by Conk1
20 Jul 2010 03:06
Forum: DOS Batch Forum
Topic: Referencing all subfolders in a folder
Replies: 4
Views: 5048

Re: Referencing all subfolders in a folder

Thanks!

One more question though.

Say the folders weren't all called AVP6, AVP7, AVP8 etc and were just random names. Could I change your code to:
for /d %%a in (*)
by Conk1
19 Jul 2010 09:27
Forum: DOS Batch Forum
Topic: Referencing all subfolders in a folder
Replies: 4
Views: 5048

Referencing all subfolders in a folder

Hi I'm trying to make a batch file easier as I do a similar task to this quite a few times: del /f /s /q "C:\ProgramData\Kaspersky Lab\AVP6\Data\Updater\Temporary Files\*.*" del /f /s /q "C:\ProgramData\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\*.*" del /f /s /q "C:\Pr...
by Conk1
08 Feb 2010 09:49
Forum: DOS Batch Forum
Topic: Delete locked file on restart
Replies: 1
Views: 3534

Delete locked file on restart

I am trying to make a batch script that will delete certain locked files after a restart. So far I haven't been able to achieve this without using other programs.

Is there a command for getting rid of locked files on restart?
by Conk1
07 Dec 2009 19:41
Forum: DOS Batch Forum
Topic: Using rd and del commands.
Replies: 4
Views: 5805

That is what I'm doing as well as other variables like %userprofile% and "localappdata% for vista.
by Conk1
04 Dec 2009 10:30
Forum: DOS Batch Forum
Topic: Using rd and del commands.
Replies: 4
Views: 5805

Thanks for your reply :)

So the only benefit of using both lines would be that the timeout would be longer?
by Conk1
04 Dec 2009 10:04
Forum: DOS Batch Forum
Topic: Using rd and del commands.
Replies: 4
Views: 5805

Using rd and del commands.

Hello, I was wondering if the latter of commands is more effective:

rd /s /q "C:\temp\"

or:

del /f /s /q "C:\temp\*.*"
rd /s /q "C:\temp\"

Does adding the del command before rd makes it anymore effective or reliable for a directory of files?