needs to create dummy copies of folder a folder with a bat file and add it to right click menu of the folder

Gurpreet 0 Reputation points
2024-12-25T06:25:23.2033333+00:00

so I want to right click on a folder and create the dummy copy of that folder with 0 byte files, i use robocopy command as Follows:-

For Folder:- Robocopy /Create /Purge /S "%cd%" "%cd% Dummy"

For File:- Robocopy /Create /Purge "%cd%" "%cd%/Dummy"

I create a .bat file with it put it in to one of the folder and add it to the registry to have it in right click menu of any folder or file

so now the problem is that bat file for the folder creates the dummy of the parent folder with all the subfolders and files and the bat file for files creates the dummies of all the files in the folder in to a dummy folder in the same folder Sorry my english is not that good hopefully I was able to explain it

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,907 questions
Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
348 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,708 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.