Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem in renaming Directories.

Problem in renaming Directories.

Scheduled Pinned Locked Moved ASP.NET
help
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    souravghosh18
    wrote on last edited by
    #1

    In my application I am creating and renaming directories.For creating Directories I have used (System.IO.Directory.CreateDirectory("F:\Dir1")) But i face a problem in renaming the directories.Is there any way to rename directories.

    A P 2 Replies Last reply
    0
    • S souravghosh18

      In my application I am creating and renaming directories.For creating Directories I have used (System.IO.Directory.CreateDirectory("F:\Dir1")) But i face a problem in renaming the directories.Is there any way to rename directories.

      P Offline
      P Offline
      padmanabhan N
      wrote on last edited by
      #2

      System.IO.Directory.CreateDirectory(@"D:\\neww"); System.IO.Directory.Move(@"D:\\neww", @"D:\\neww1"); //this will work.

      Padmanabhan My Articles[^]

      1 Reply Last reply
      0
      • S souravghosh18

        In my application I am creating and renaming directories.For creating Directories I have used (System.IO.Directory.CreateDirectory("F:\Dir1")) But i face a problem in renaming the directories.Is there any way to rename directories.

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        souravghosh18 wrote:

        Is there any way to rename directories

        Yes ! Try to do using Directory.Move Method

        cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

        S 1 Reply Last reply
        0
        • A Abhijit Jana

          souravghosh18 wrote:

          Is there any way to rename directories

          Yes ! Try to do using Directory.Move Method

          cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

          S Offline
          S Offline
          souravghosh18
          wrote on last edited by
          #4

          thanx for the response

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups