Reputation: 1371
I want to delete some files from a folder, so I do this:
DEL "C:\Documents and Settings\name\My Documents\application\v10-105 CODE\v10-105 CODE\app\bin\Release\ExSimSeqNum-*.txt"
However, the folder "v10-105 CODE" changes very often (as version gets incremented).
In ../application/
, there is only one folder and in that single folder, there are two folders.
Is there a way to generalize going down this path? I tried this:
DEL "C:\Documents and Settings\name\My Documents\application\v*\v*\app\bin\Release\ExSimSeqNum-*.txt"
but I get "The filename, directory name, or volume label syntax is incorrect."
Any suggestions?
Upvotes: 0
Views: 231
Reputation: 2963
try this:
C:
CD "C:\Documents and Settings\name\My Documents\application"
CD v*\v*
DEL app\bin\Release\ExSimSeqNum-*.txt
The reason is do not use * inside quote to match multiple characters, it won't work
Upvotes: 2