← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #374925]: Editing, deleting Files

 

Question #374925 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/374925

Haden Derrington-Holburn posted a new comment:
Thank you, you are a GOD. I also was wondering if something like this
would work in a dos batch file:

:: This fella deletes the two databases created in the Data folder.
Wipes it clean before each test that involves G02

@echo off
:: Doesn't display any of the executions to the user.
:: This entire thing takes about 1 second, but it looks nicer not to have a black .cmd file flash at you

cd %~dp0 
::finds the relative path without using the entire file path
::useful cuz other PCs will have different filepaths to me

del Data\CURDBASE.DAT 
del Data\REPDBASE.DAT
:: duh deletes each separate one

::All files from Data are removed


I'm not familiar with batch files, and I tried to use as much of my shell knowledge as possible.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.