Error when delete files using bat

Ky_Lim
cd "D:\WWW\SEAP_P\Web\Sec.Seap.Application\prod\TSE\mailer_bin\sent"
echo y | del *.*

I want to delete all the files from sent directory,when i run the bat file.it delete all the file from my desktop.can i know what caused this?

Dark Cyber

first please choose your destination drive then set directory you want to delete. here is looks like

D:
cd "WWW\SEAP_P\Web\Sec.Seap.Application\prod\TSE\mailer_bin\sent"
echo y | del *.*

make sure D: without "

or

cd /d "D:\WWW\SEAP_P\Web\Sec.Seap.Application\prod\TSE\mailer_bin\sent"
echo y | del *.*

as suggested by @SomethingDark in comment (Thanks BTW),

Let me know if it works.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Error when using BAT Files. - R was unexpected at this time

From Dev

how to delete files and subfolder using bat file

From Dev

Php Script to delete and create files and folder using .bat not working when run using Windows Scheduler

From Dev

Php Script to delete and create files and folder using .bat not working when run using Windows Scheduler

From Dev

bat file Error "invalid verb switch" when using wmic

From Dev

Delete all files from a folder using a bat that match a certain pattern in Windows 10

From Dev

Anyway delete unique files with a .bat file, using another folder's content as reference?

From Dev

Bat script to delete files with specific extention

From Dev

How to silently delete files with a bat file

From Dev

How to silently delete files with a bat file

From Dev

Append multiple files using a .bat

From Dev

I got this strange error when delete files in xcode

From Dev

Delete a file inside subfolder using bat

From Dev

Error using find command to find, compress and delete files

From Dev

Using %* as string parameter on windows .bat files

From Dev

Sorting files into folders by file name using .bat

From Dev

2: No such directory error when running jar from bat file using scheduler

From Dev

Error when using glob, os to read csv files using pandas

From Dev

Delete files/uploads when delete User

From Dev

Delete files when closing Eclipse

From Dev

Using find to delete some files

From Dev

Unable to delete files using the script

From Dev

Using find to delete some files

From Dev

Syntax error on file name when using awk to compare two files

From Dev

Getting error when using command line for SASS to watch files

From Dev

Error when linking .o files using ld on WIndows

From Dev

Error when linking .o files using ld on WIndows

From Dev

Python error when installing package using wheel files

From Dev

getting the error when using sed in a loop- sed:no input files

Related Related

  1. 1

    Error when using BAT Files. - R was unexpected at this time

  2. 2

    how to delete files and subfolder using bat file

  3. 3

    Php Script to delete and create files and folder using .bat not working when run using Windows Scheduler

  4. 4

    Php Script to delete and create files and folder using .bat not working when run using Windows Scheduler

  5. 5

    bat file Error "invalid verb switch" when using wmic

  6. 6

    Delete all files from a folder using a bat that match a certain pattern in Windows 10

  7. 7

    Anyway delete unique files with a .bat file, using another folder's content as reference?

  8. 8

    Bat script to delete files with specific extention

  9. 9

    How to silently delete files with a bat file

  10. 10

    How to silently delete files with a bat file

  11. 11

    Append multiple files using a .bat

  12. 12

    I got this strange error when delete files in xcode

  13. 13

    Delete a file inside subfolder using bat

  14. 14

    Error using find command to find, compress and delete files

  15. 15

    Using %* as string parameter on windows .bat files

  16. 16

    Sorting files into folders by file name using .bat

  17. 17

    2: No such directory error when running jar from bat file using scheduler

  18. 18

    Error when using glob, os to read csv files using pandas

  19. 19

    Delete files/uploads when delete User

  20. 20

    Delete files when closing Eclipse

  21. 21

    Using find to delete some files

  22. 22

    Unable to delete files using the script

  23. 23

    Using find to delete some files

  24. 24

    Syntax error on file name when using awk to compare two files

  25. 25

    Getting error when using command line for SASS to watch files

  26. 26

    Error when linking .o files using ld on WIndows

  27. 27

    Error when linking .o files using ld on WIndows

  28. 28

    Python error when installing package using wheel files

  29. 29

    getting the error when using sed in a loop- sed:no input files

HotTag

Archive