Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Command Prompt: Repeat del command continuosly

20 Oct 2015   #1
nickelcap

Windows 7 Professional x64
 
 
Command Prompt: Repeat del command continuosly

Hi All,

I'm running a program that parses .csv files and then changes them into ._OK files. This process takes longer when there are a large number of *.OK files in the folder where the files being converted are located. To remedy this I occasionally manually run this command:

Code:
del *._OK
While pointing at the proper folder.

Is there a way to have this command continuously run, kind of like out ping -t [IP ADDRESS HERE] continuously pings a certain IP address?

Regards,

Dan


My System SpecsSystem Spec
.
20 Oct 2015   #2
MilesAhead

Windows 7 32 bit
 
 

Quote:
I'm running a program that parses .csv files and then changes them into ._OK files.
I take it then the conversion program will not accept an output folder other than the current or working directory? More detail what you actually do with the output files might be helpful.
My System SpecsSystem Spec
20 Oct 2015   #3
nickelcap

Windows 7 Professional x64
 
 

Basically it takes the .csv files, parses them, passes the information held within to a database, and at the end converts the file to an ._OK. I'm not really that knowledgeable as to how it all works, I just set up the utility and run it when I get a large volume of .csv files to bring into the server. The conversion program needs the folder to be one called "DATA" located on my C: drive.
My System SpecsSystem Spec
.

20 Oct 2015   #4
Ztruker

Windows 10 Pro X64
 
 

Call the utility from a batch file and make the del *._OK the last command in the batch file.
It should run when the utility exits.
My System SpecsSystem Spec
20 Oct 2015   #5
UsernameIssues

W7 Pro SP1 64bit
 
 

Quote   Quote: Originally Posted by nickelcap View Post
Is there a way to have this command continuously run
Code:
:start
timeout /T 10
del *._OK
goto start
My System SpecsSystem Spec
20 Oct 2015   #6
Ztruker

Windows 10 Pro X64
 
 

Sure, make it a batch file and place a link to it in the Startup folder. Then it will start when the system boots and run until it shuts down. You could also place a link to it on the Desktop then start if manually whenever you want it to start running.

It's going to open a Command Prompt window, not much you can do about that other than minimize it.

Every 10 seconds seems excessive but I guess it depends on how often the _OK files are being generated.
My System SpecsSystem Spec
21 Oct 2015   #7
nickelcap

Windows 7 Professional x64
 
 

Thank you very much! I put the .bat file in the DATA folder and will manually run it as needed. It works just how I hoped it would. 10 sec is a good pace for what I'm doing since the conversion of files from .csv to ._OK files only takes the utility a few second, and a large build up of ._OK files forms very quickly which slows the application down. With this I'll be able to speed up the process without me having to manually go to the command window and run the code.

Regards,

Dan
My System SpecsSystem Spec
Reply

 Command Prompt: Repeat del command continuosly




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Command Prompt command <ipconfig> not working
when I open up my command prompt and type 'ipconfig' without the ' and press enter it returns the line: 'ipconfig' is nto recognized as an internal or external command, operable program, or batch file I am trying to find out the information I need in order to set up a static IP Address for port...
Network & Sharing
How to fix MBR through command prompt?
Question: What commands could I run in the command prompt during the system recovery? I try & run say "fixmbr" but it doesn't work. Say if I want to write a new master boot record how would I do that?
General Discussion
"Copy" command in command prompt generates 0x1a artifact?
Hello Everybody! I don't know if this is a real issue, or just one of those "What the . . . .!!" situations. You judge. Situation: I was working on a batch file that combines two .txt (ASCII?) files created in Notepad to create a composite file, and I noticed something really interesting. ...
Software
need help with command prompt command
@Echo Off Title Sccm cd %systemroot%\system32 call :IsAdmin Reg.exe add "HKLM\SOFTWARE\Microsoft\CCM\CcmExec" /v "SystemTaskExcludes" /t REG_SZ /d "" /f Reg.exe add "HKLM\SOFTWARE\Microsoft\CCM\CcmExec" /v "ProvisioningMode" /t REG_SZ /d "false" /f Reg.exe add...
General Discussion
Run administrative command prompt from command prompt
Ok So I got myself into a unique bind here. I was trying to install some custom system files (for a theme) and I did it wrong and now I cant open explorer.exe . I dont want to goto a backup because this is a easy fix. (in my view). So I need to know how to run command prompt with administrative...
General Discussion
Command Prompt
Ok so every time I try to open the command prompt using an external source (batch file, small c++ program i made to say Hi to me through the command prompt) it instantly closes. Does anyone have any idea why this is happening and if so how can I fix it? Thanks, Wave
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:09.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App