Skip to content

Codepolice

  • ⤫

Copy a folder with Robocopy

Posted by Judy Alvarez Posted on February 28, 2022March 3, 2022
0

I’m playing around a bit with PhoneGap at the moment. I wanted to make a script that copies all my javascript, HTML, images and CSS from my Visual Studio project folder to each of the different PhoneGap projects for iOS, Android, and so on.

Visual Studio has a feature to execute commands after the project is built and it felt like the simplest solution. I tried to add a command like robocop c:myprojcss c:myandroidproj it worked but the thing was that I wanted to copy the folder AND the files in it and I couldn’t figure out how to do that. Maybe I’m just stupid, I don’t know.

Anyway, I figured out how to do it in a good way finally.

robocopy $(ProjectDir) C:JavaMyProjassetswww *.html *.js *.css *.png *.gif *.jpg /S

This will copy all the specified filetype, ignore files like .csproj, and stuff like that. The S stands for “Copy directory structure but ignores empty folders”.

Categories: JavascriptTagged: .net 5 asp.net mvc, .net core vs asp.net mvc, .net mvc jobs, .net mvc redirect to url, .net mvc vs web api, 20486 developing asp net mvc 4 web applications, asp .net mvc 5, asp net core mvc post, asp net mvc 5 book, asp net mvc actionfilter, asp net mvc crud operations using datatable, asp net mvc examples, asp net mvc for beginners, asp net mvc form validation, asp net mvc pattern, asp net mvc remote jobs, calendar asp net mvc, crystal report in asp net mvc, ecommerce asp net mvc, expert asp net web api 2 for mvc developers pdf, how to integrate google map in asp net mvc, install asp net mvc 4 for visual studio 2017, introduction to asp net mvc, learn asp net mvc 5, mvc dot net interview questions, mvc in dot net, mvc net core 5, mvc tutorial for beginners in net c# with example pdf, net mvc core, recaptcha v2 asp net mvc

Post navigation

Previous Previous post: Make the Git GUI appear after you publish a Web Project in Visual Studio 2010
Next Next post: Batch Optimize Png, Jpg, and Gif images in Windows (and Visual Studio)

Related Posts

  • What’s next for JavaScript frameworks in 2026

    #​770 — January 27, 2026 Read on the Web JavaScript Weekly Introducing LibPDF: PDF Parsing and Generation from TypeScript — LibPDF bills itself as ‘the PDF library TypeScript deserves’ and supports parsing, modifying, signing and generating PDFs with a modern API in Node, Bun, and the browser. GitHub repo. Documenso JavaScript Frameworks – Heading into 2026

    Posted by Posted on January 27, 2026
    0
  • require(esm) now stable in Node 25

    #​608 — January 22, 2026 Read on the Web Node.js 25.4.0 (Current) Released — Another gradual step forward for Node with require(esm) now marked as stable, as well as the module compile cache, along with a variety of other minor tweaks. Joyee Cheung of the Node team has written a thread on Bluesky going deeper

    Posted by Posted on January 22, 2026
    0
  • A big week for jQuery

    #​769 — January 20, 2026 Read on the Web JavaScript Weekly jQuery 4.0 Released — 20 years on from its original release, the ever-popular (in terms of actual usage) library reaches 4.0 with a migration to ES modules (compatible with modern build tools) along with dropping support for IE 10 and older. With jQuery being

    Posted by Posted on January 20, 2026
    0
  • A new guide to configuring Node packages

    #​607 — January 15, 2026 Read on the Web ⚠️ The Node.js January 13, 2026 Security Releases — Originally expected in December, these releases (of Node.js 25.3.0, 24.13.0, 22.22.0, and 20.20.0) finally landed this week, largely due to their complexity and the scope of the vulnerabilities they tackle. More on that in the next item! The Node.js

    Posted by Posted on January 15, 2026
    0
  • Can we ever fix the web dependency mess?

    #​768 — January 13, 2026 Read on the Web JavaScript Weekly Web Dependencies are Broken; Can We Fix Them? — Lea, who has worked at the heart of Web Standards for years, delivers a compelling (and educational) call to action about a problem every JavaScript developer has encountered: why is managing dependencies and introducing them

    Posted by Posted on January 13, 2026
    0
  • The story of how require(esm) became stable

    #​606 — January 8, 2026 Read on the Web 🎉 Happy New Year! Also, a quick reminder that Node Weekly is now sent every Thursday as part of a reshuffle for many of our newsletters. __Your editor, Peter Cooper npm to Implement ‘Staged Publishing’ After Turbulent Shift Off Classic Tokens — 2025 was a tricky year

    Posted by Posted on January 8, 2026
    0
Judy Alvarez

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Codepolice

  • Github
  • Atlassian
  • Flatlogic
  • Xero
  • Jetbrains
  • Figma
  • What’s next for JavaScript frameworks in 2026
  • require(esm) now stable in Node 25
  • A big week for jQuery
  • A new guide to configuring Node packages
  • Can we ever fix the web dependency mess?
https://flatlogic.com/generator
COPYRIGHT © 2026 - Codepolice