Creating Directories Following a Pattern

I'm trying to create multiple folders like my folder 01 to any number that I desire, I know i want to use a pattern like "my folder ##" I want to know how to get the program to read my pattern and replace the "##" with the number. I know that a loop may be useful but i would appreciate a hand

Comments

  • : I'm trying to create multiple folders like my folder 01 to any number that I desire, I know i want to use a pattern like "my folder ##" I want to know how to get the program to read my pattern and replace the "##" with the number. I know that a loop may be useful but i would appreciate a hand
    :
    Something like

    dim iMax as integer
    dim iCnt as integer
    dim sTemp as string

    iMax=10
    for icnt=1 to iMax
    stemp="my folder " & icnt
    MkDir stemp
    next 'iCnt


  • I know what you're trying to get at, but I am strugling to work out how to get the program to read a directory name pattern like "my folder ##" the ## would start with a number that the user specifies in a box and get the number of directories that they want and create the folders.

    I hope you can help me?


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories