Jump to content

Recommended Posts

Posted

hi

i want copy my downloads to E:\Downloads\ auto folder create 001 002 003

xcopy C:\Documents and Settings\Administrator\My Documents\Downloads

to E:\Downloads\ folder generate 001 002 003

E:\Downloads\Download001

E:\Downloads\Download002

E:\Downloads\Download003


Posted

I don't understand a thing of what you're trying to achieve when you explain it like this (but perhaps it is only me). Could you explain a little more or make a drawing ?

  • 3 weeks later...
Posted

@echo off

for /l %%a in (1,1,3) do (
if not exist "E:\Downloads\Download00%%a\." (md "E:\Downloads\Download00%%a")
xcopy "C:\Documents and Settings\Administrator\My Documents\Downloads" "E:\Downloads\Download00%%a"
)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...