Quantcast
Channel: Can someone review this Windows command before I run it - Super User
Viewing all articles
Browse latest Browse all 2

Can someone review this Windows command before I run it

$
0
0

I am wanting to copy my .gitignore file into all projects in my directory.

I do not want to overwrite the file if a folder already has it (so flagging to request confirmation /-y)

for /d %a in (C:\WebDocs\wamp\www\) do copy /-y C:\WebDocs\wamp\www\FolderContainingFileIWantCopied\.gitignore %a

Can someone confirm this is accurate before I run it, and let me know what I should expect (there are over 200 folders, with approximately 10-20 having a .gitignore file currently.

While I was comfortable in the command line in the 90's, I am nervous about running a command that could touch so many projects


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images