Forfiles Batch Script (Escaping @ character)

后端 未结 8 945
闹比i
闹比i 2020-12-15 05:35

I\'m working on a batch script that will let me delete files older then a set period using forfiles. For now, I\'m aiming at printing the files that will be deleted.

8条回答
  •  轮回少年
    2020-12-15 06:26

    Try trimming the trailing \ from your /P path. Then you should be able to use quotes to encapsulate a path that includes a space.

提交回复
热议问题