home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,497 of 10,840   
   Steve Gerrard to DizWiz   
   Re: Create subdir in windows dir   
   15 May 05 11:11:03   
   
   From: mynamehere@comcast.net   
      
   "DizWiz"  wrote in message   
   news:42870544$0$75659$dbd49001@news.wanadoo.nl...   
   > Hi!,   
   >   
   > Im am using the VB Express Beta2 but cannot figure out how to create a subdir   
   > in the windows directory.   
   >   
   > Code:   
   >   
   > Dim windowsdir as String   
   > Dim dircreate   
   > dircreate="backup"   
   > windowsdir=environ$("windir")   
   > My.Computer.FileSystem.CreateDirectory(windowsdir)   
   >   
   > I want to create the directory "backup" under the windows directory and i   
   > don't want to use   
   > the absolute path, what am i missing?   
   >   
      
   I would assume you need   
       My.Computer.FileSystem.CreateDirectory(windowsdir & "\" & dircreate)   
      
   since recreating the windows directory itself is probably frowned upon.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca