in reply to mkdir on Windows 98

Just a couple of quick ideas.

Can you create this directory yourself from the command line ?

On the first two is your code running in the directory where you have permission to make a dir ?

Try running the third but with escaped forwards slashes, ie:

`mkdir C:\\Windows\\Temp\\myfolder`;
Cheers.

Replies are listed 'Best First'.
Re^2: mkdir on Windows 98
by Anonymous Monk on Aug 16, 2004 at 23:00 UTC
    Dear ikegami, ccn and Random_Walk,
    Thank you very much for helping me. I tried these three things and they all worked:

    `mkdir C:\\Windows\\Temp\\myfolder`;

    my $folder="C:\\Windows\\Temp\\myfolder";
    my $cmd=`mkdir $folder`;

    my $folder="C:\\Windows\\Temp\\myfolder2";
    mkdir "$folder", 0755 or warn "Cannot make directory: $!\n";

    I really appreciate your help! I guess I got myself confused by the slashes!
    Best regards,
    shn4002