Directory.Move > Sessions Lost

H

Harald Fichtner

Hello,

I tried to rename a folder with the following code:
....
dir = New DirectoryInfo(sCurrentPath)
dir.MoveTo(sNewPath)
....

The folder I try to rename is not the root folder.
For example:

C:\Inetpub\wwwroot\DemoWebsite\Folder Level1\Folder Level 2

I rename the folder "Folder Level 2" to "Folder Level 2a"
The renaming works fine, but after that, I loose all my sessions

Does anyone know how to fix this problem or does anyone know any
workarounds?

Thanks for any help...

Regards
Harald
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,281
Latest member
Pedroaciny

Latest Threads

Top