Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

CreateDir


1 reply to this topic

Blackdog

Blackdog
  • Full Members
  • 64 posts

Posted 30 November 2001 - 18:22

I am using the CreateDir function and even though in the debugger, it implies it worked, the directory is never created. I am using IS6.3 (non-event based).
I am running the script through the debugger onto a Win2000 Pro machine.

The following is the code. Two methods are shown as I modified it to put the result into the nResult variable, which shows 0.

   if  (ExistsDir ( svResultPath ^ "\\test\\blank\\Medinote" ) = NOTEXISTS) then
 nResult = (CreateDir ( svResultPath ^ "\\test\\blank\\Medinote" ));
       if  nResult < 0 then
   gsErrorMessage = svResultPath ^ "\\TEST\\BLANK\\MEDINOTE";
 goto ShowError;
 endif;
endif;
//    if  (ExistsDir ( svResultPath ^ "\\test\\blank\\Medinote" ) = NOTEXISTS) then
//  if  (CreateDir ( svResultPath ^ "\\test\\blank\\Medinote" ) < 0 ) then;
//    gsErrorMessage = svResultPath ^ "\\TEST\\BLANK\\MEDINOTE";
//  goto ShowError;
//  endif;
//endif;


Blackdog

Blackdog
  • Full Members
  • 64 posts

Posted 30 November 2001 - 21:27

Not sure exactly what I changed, certainly not the CreateDir command though, but it started working!
I did some modifications with script-defined directory names and then it worked. Not sure why it didn't before.