Create subdir in windows dir

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DizWiz

    #1

    Create subdir in windows dir

    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="back up"
    windowsdir=envi ron$("windir")
    My.Computer.Fil eSystem.CreateD irectory(window sdir)

    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?

    Thanks.

    Jacco


  • Raoul Watson

    #2
    Re: Create subdir in windows dir


    "DizWiz" <dizwiz@dizwiz. com> wrote in message
    news:42870544$0 $75659$dbd49001 @news.wanadoo.n l...[color=blue]
    > Hi!,
    >
    > Im am using the VB Express Beta2 but cannot figure out how to create a
    > subdir in the windows directory.
    >[/color]

    Pardon my ignorance but what on earth is VB Express?


    Comment

    • Rick Rothstein

      #3
      Re: Create subdir in windows dir

      Almost everybody in this newsgroup is using VB6 or lower. While you may
      get a stray answer to VB.NET (including VB2003 and VB2005 which has
      dropped .NET from its name) questions here, you should ask them in
      newsgroups devoted exclusively to .NET programming. Look for newsgroups
      with either the word "dotnet" or "vsnet" in their name.

      For the microsoft news server, try these newsgroups for Visual Basic
      ..NET related questions...

      microsoft.publi c.dotnet.langua ges.vb
      microsoft.publi c.dotnet.langua ges.vb.upgrade
      microsoft.publi c.dotnet.langua ges.vb.controls
      microsoft.publi c.dotnet.langua ges.vb.data

      And these for more general .NET questions

      microsoft.publi c.dotnet.genera l
      microsoft.publi c.vsnet.general

      Note: There are many other .NET newgroups (use the first three "fields"
      from the last two as templates when searching for them), but the above
      ones should get you started.

      Rick - MVP



      "DizWiz" <dizwiz@dizwiz. com> wrote in message
      news:42870544$0 $75659$dbd49001 @news.wanadoo.n l...[color=blue]
      > 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="back up"
      > windowsdir=envi ron$("windir")
      > My.Computer.Fil eSystem.CreateD irectory(window sdir)
      >
      > I want to create the directory "backup" under the windows directory[/color]
      and i[color=blue]
      > don't want to use
      > the absolute path, what am i missing?
      >
      > Thanks.
      >
      > Jacco
      >
      >[/color]

      Comment

      • DizWiz

        #4
        Re: Create subdir in windows dir

        Thanks,

        Will post my question in one of the groups.

        Jacco

        "Rick Rothstein" <rickNOSPAMnews @NOSPAMcomcast. net> wrote in message
        news:V4ydnTmmZe MZyBrfRVn-1Q@comcast.com. ..[color=blue]
        > Almost everybody in this newsgroup is using VB6 or lower. While you may
        > get a stray answer to VB.NET (including VB2003 and VB2005 which has
        > dropped .NET from its name) questions here, you should ask them in
        > newsgroups devoted exclusively to .NET programming. Look for newsgroups
        > with either the word "dotnet" or "vsnet" in their name.
        >
        > For the microsoft news server, try these newsgroups for Visual Basic
        > .NET related questions...
        >
        > microsoft.publi c.dotnet.langua ges.vb
        > microsoft.publi c.dotnet.langua ges.vb.upgrade
        > microsoft.publi c.dotnet.langua ges.vb.controls
        > microsoft.publi c.dotnet.langua ges.vb.data
        >
        > And these for more general .NET questions
        >
        > microsoft.publi c.dotnet.genera l
        > microsoft.publi c.vsnet.general
        >
        > Note: There are many other .NET newgroups (use the first three "fields"
        > from the last two as templates when searching for them), but the above
        > ones should get you started.
        >
        > Rick - MVP
        >
        >
        >
        > "DizWiz" <dizwiz@dizwiz. com> wrote in message
        > news:42870544$0 $75659$dbd49001 @news.wanadoo.n l...[color=green]
        >> 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="back up"
        >> windowsdir=envi ron$("windir")
        >> My.Computer.Fil eSystem.CreateD irectory(window sdir)
        >>
        >> I want to create the directory "backup" under the windows directory[/color]
        > and i[color=green]
        >> don't want to use
        >> the absolute path, what am i missing?
        >>
        >> Thanks.
        >>
        >> Jacco
        >>
        >>[/color]
        >[/color]


        Comment

        • Steve Gerrard

          #5
          Re: Create subdir in windows dir


          "DizWiz" <dizwiz@dizwiz. com> wrote in message
          news:42870544$0 $75659$dbd49001 @news.wanadoo.n l...[color=blue]
          > 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="back up"
          > windowsdir=envi ron$("windir")
          > My.Computer.Fil eSystem.CreateD irectory(window sdir)
          >
          > 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?
          >[/color]

          I would assume you need
          My.Computer.Fil eSystem.CreateD irectory(window sdir & "\" & dircreate)

          since recreating the windows directory itself is probably frowned upon.


          Comment

          Working...