CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Name Statement

  1. #1
    Join Date
    Oct 1999
    Location
    Florida
    Posts
    36

    Name Statement

    Will the 'NAME OLDNAME AS NEWNAME' work across a NT network? It works on local drives fine. I have shared the drive and directory to death on the server, no luck. Tried useing \\Servername\directory (no luck) tried mapping a drive letter to the Drive (nt) root and even to the actual directory that I am tring to rename. What am I doing wrong?

    whg

  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Name Statement

    I tried this on an NT network without problems

    Name "\\fns10\myshare\test.xxx" As "\\fns3\othershare\test\test.xxx"

    it even works accross servers.
    What's your problem? what error message do you get?



  3. #3
    Join Date
    Oct 1999
    Location
    Florida
    Posts
    36

    Re: Name Statement

    Thank you for your reply, Ok I have been a victim of my own oversight. Seems that this peoblem was a result in me forgetting to close a connection to a database that was in the folder I was trying to re-name. I traced my code and foubd that I was firing this routine just before the disconnect. After reviewing your reply I noticed the connection was still held. Again thank you for your help..

    whg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured