Search found 12 matches
- 21 Jul 2011 08:53
- Forum: DOS Batch Forum
- Topic: Delete all folders containing a string
- Replies: 3
- Views: 4394
- 21 Jul 2011 06:40
- Forum: DOS Batch Forum
- Topic: Delete all folders containing a string
- Replies: 3
- Views: 4394
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...
- 06 Jan 2011 02:59
- Forum: DOS Batch Forum
- Topic: Hiding programs run from within a batch script
- Replies: 8
- Views: 11010
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.
- 08 Dec 2010 17:31
- Forum: DOS Batch Forum
- Topic: Hiding programs run from within a batch script
- Replies: 8
- Views: 11010
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?
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?
- 08 Dec 2010 04:51
- Forum: DOS Batch Forum
- Topic: Hiding programs run from within a batch script
- Replies: 8
- Views: 11010
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...
- 20 Jul 2010 06:32
- Forum: DOS Batch Forum
- Topic: Referencing all subfolders in a folder
- Replies: 4
- Views: 5034
Re: Referencing all subfolders in a folder
Thanks once again
- 20 Jul 2010 03:06
- Forum: DOS Batch Forum
- Topic: Referencing all subfolders in a folder
- Replies: 4
- Views: 5034
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 (*)
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 (*)
- 19 Jul 2010 09:27
- Forum: DOS Batch Forum
- Topic: Referencing all subfolders in a folder
- Replies: 4
- Views: 5034
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...
- 08 Feb 2010 09:49
- Forum: DOS Batch Forum
- Topic: Delete locked file on restart
- Replies: 1
- Views: 3526
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?
Is there a command for getting rid of locked files on restart?
- 07 Dec 2009 19:41
- Forum: DOS Batch Forum
- Topic: Using rd and del commands.
- Replies: 4
- Views: 5787
- 04 Dec 2009 10:30
- Forum: DOS Batch Forum
- Topic: Using rd and del commands.
- Replies: 4
- Views: 5787
- 04 Dec 2009 10:04
- Forum: DOS Batch Forum
- Topic: Using rd and del commands.
- Replies: 4
- Views: 5787
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?
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?