1.

Solve : program idea?

Answer»

i had this idea a while ago and tryed to do it by hand and was exhausting i WOULD like to make a program that would make a BUNCH of folders like a 4-digit combination lock so there would be folders with numbers 1-9 and in each folder folders 1-9 and so on im kinda new at PROGRAMING so some TIPS would be helpful PHP can do this. You'll need a server though.

Code: [Select]<?php

for($i=1;$i<=9;$i++)
{
mkdir("/".$i,0777);
for($j=1;$j<=9;$j++)
{
mkdir("/".$i."/".$j,0777);
}
}

?>

That should work.would it be possible to do it locally or using like c++It probably would, but sorry - I don't know C++. There are people here who can help, though.how about a batch FILE? is that possible heres the batch code
Code: [Select]for /L %%c in (0, 1, 9999) do (
md %%c
echo Creating directory %%c
)



Discussion

No Comment Found