Solved Command Prompt: Repeat del command continuosly

nickelcap

New member
Local time
5:56 PM
Messages
3
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 Computer

Computer type
PC/Desktop
OS
Windows 7 Professional x64
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 Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
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 Computer

Computer type
PC/Desktop
OS
Windows 7 Professional 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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
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 Computer

Computer type
PC/Desktop
OS
Windows 7 Professional x64
Back
Top