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

  • pnpm adds support for delayed dependency updates

    #​593 — September 16, 2025 Read on the Web 🗓️ We’re taking next week off, so we will be back in your inbox again on Tuesday, September 30.__Peter Cooper, your editor Node.js v24.8.0 (Current) Released — The big new feature is added support for inspecting HTTP/2 network calls made from Node in Chrome DevTools. There have

    Posted by Posted on September 16, 2025
    0
  • Package efficiency and dependency hygiene

    #​752 — September 12, 2025 Read on the Web If you have any interest in music and being able to render music or generate music with JavaScript, be sure to check out the very end of this issue where we’ve dedicated an entire section to the topic 🙂__Your editor, Peter Cooper JavaScript Weekly How to Keep

    Posted by Posted on September 12, 2025
    0
  • A significant supply chain attack on the npm ecosystem

    #​592 — September 9, 2025 Read on the Web A Major Supply Chain Attack Hits the npm Ecosystem — In July, Socket warned us about a phishing campaign targeting npm package publishers. Sadly, a prolific package author (among others, like DuckDB, who explain how the attack worked on them) fell victim to the scam, resulting

    Posted by Posted on September 9, 2025
    0
  • Why browsers throttle JavaScript timers (and what to do about it)

    #​751 — September 5, 2025 Read on the Web JavaScript Weekly Mediabunny: A Complete Media Toolkit for JavaScript — Supporting both browsers and Node.js, this library lets you read, write and convert popular media file formats (e.g. MP4, MP3, and more) without needing to lean on dependencies like FFmpeg. You can make thumbnails, extract metadata,

    Posted by Posted on September 5, 2025
    0
  • The latest on Oracle’s hold on JavaScript

    #​750 — August 29, 2025 Read on the Web JavaScript Weekly An Illustrated Guide to Big O and Time Complexity — A fantastic JavaScript-oriented, interactive, visual essay about Big O notation and its role in describing algorithmic complexity. This is a beautiful bit of work, even if you’re already wise to O(log n) and O(n^2).

    Posted by Posted on August 29, 2025
    0
  • The productivity benefits from type stripping

    #​591 — August 26, 2025 Read on the Web How We Migrated Our Rush.js Monorepo to Node Type Stripping — Since v23.6 (and in LTS since v22.18.0), Node has supported running (most) TypeScript code by stripping the types out first. The Calm team was excited about the potential for improving productivity and DX, and set

    Posted by Posted on August 26, 2025
    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
  • pnpm adds support for delayed dependency updates
  • Package efficiency and dependency hygiene
  • A significant supply chain attack on the npm ecosystem
  • Why browsers throttle JavaScript timers (and what to do about it)
  • The latest on Oracle’s hold on JavaScript
https://flatlogic.com/generator
COPYRIGHT © 2025 - Codepolice