Results 1 to 14 of 14

Thread: path too deep!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    path too deep!

    Trying to copy a file from PC to PC through the network, I get an error message on a particular pc saying ( Can not copy file (path too deep))!

    The path I'm trying to copy to is c:\FOLDER\

    which is not too deep!

    Does anyone knows what's going on ?

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: path too deep!

    bomayed,

    You never mentioned what kind of network. What kind of copying you are doing etc...

  3. #3
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536

    Re: path too deep!

    Does it fail on a particular file? What is the name of the file?
    This world is not my home. I'm just passing through.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    Re: path too deep!

    The name of the file is TEST.EXE



    Randem , the network I'm talking about is a network between a pc and another through dial-up connection or RAS.

    My PC dials and login to a PC which is already exists on a network and has a shared folder and full access.
    Last edited by bomayed; Oct 10th, 2005 at 04:55 AM.

  5. #5
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536

    Re: path too deep!

    How about the folder name that you're copying from? Is it the same as the destination folder?

    Can you post the code that you're using to do the copy?
    This world is not my home. I'm just passing through.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    Re: path too deep!

    trisuglow , forget about the code , I'm actually browsing the shared folder and trying to copy the file from my pc to the pc on the network using Copy and Paste!

  7. #7
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: path too deep!

    bomayed

    So, this is not a VB issue. Have you checked you system for viruses and trojans.

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    Re: path too deep!

    randem , actually it is a veb issue , because using (Copy and Past) commands displayes the same error when using FileCopy in VB

    The system is clean , no viruses or trojans

    This is a strange error by the way , I can't find answers to this problem!

  9. #9
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: path too deep!

    There is a maxmimum number of characters for a path/namespace, only way around it is to decrease the path string's length. Either move the folder nearer the root (and get rid of folder names in between), or to rename all affected folder names to more reasonable lengths.

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    Re: path too deep!

    I don't think I have exceeded that maximum number , the path I'm using is C:\IN\CITY_ID\TEST.EXE

    in addition to that , the same file can be copied to many computers successfully except one computer which I'm having trouble with . .


    any other suggestions?

    I have a shared folder
    I have full access to the folder
    I can copy the same file to many computers except one

    What might be the problem , humm , the difference between this particular computer and the rest of the computers is that it's connected to a network and it belongs to a domain.

  11. #11
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: path too deep!

    Quote Originally Posted by bomayed
    I don't think I have exceeded that maximum number , the path I'm using is C:\IN\CITY_ID\TEST.EXE

    in addition to that , the same file can be copied to many computers successfully except one computer which I'm having trouble with . .


    any other suggestions?

    I have a shared folder
    I have full access to the folder
    I can copy the same file to many computers except one

    What might be the problem , humm , the difference between this particular computer and the rest of the computers is that it's connected to a network and it belongs to a domain.

    You might not be having adequate previliges on that system. Can you copy other files (other than your test.exe) ?
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  12. #12
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: path too deep!

    Moved to General PC

    (as you get the problem outside of VB, it is not a code issue)

  13. #13
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: path too deep!

    Its just not the source path... the dest path might also be exceeding the max length.

    Try what Pradeep1210 suggested... test the destination folder with other files in your pc.
    Then try other shared folders on the same dest pc.

  14. #14
    Lively Member Naomi1's Avatar
    Join Date
    Oct 2002
    Posts
    113

    Re: path too deep!

    change the IDE cables

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