Results 1 to 3 of 3

Thread: mkdir from multiple strings

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    175

    mkdir from multiple strings

    hello guys!
    all ok?
    what i want to do is a simple .exe that from a datetimepicker and from some lists, create a directory and from a master file, create mulpiple files!

    EX. have a C:\teste\xfile.xls

    string the value from the datetimepicker mkdir C:\teste\(string Value)
    copy the xfile.xls file inside and rename from a list so i have the same file multiple times but whith diferent names

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: mkdir from multiple strings

    Use System.IO.Directory.Create(path) to create a new folder
    Use System.IO.File.Copy(source, destination) to copy the file.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    175

    Re: mkdir from multiple strings

    how to convert this bat file in vb.net code

    mkdir teste
    xcopy Master\*.* /e teste\*.*

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width