Results 1 to 9 of 9

Thread: [2008] Problem with path for project...

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2008
    Posts
    4

    [2008] Problem with path for project...

    Hi everyone, I'm new here but I have a question for you guys.

    I was working on a vb project in a computer lab and saved it to my flash drive. I brought it home and I'm trying to open it up and work on it but it won't let me. The project opened but when I try to open the form it says "cannot find the file....". I see in the form properties Full Path it's showing some drive and file location not on my computer. Any suggestions?

    Brett
    Last edited by BCyber; Sep 24th, 2008 at 02:43 PM. Reason: 2008 edition

  2. #2
    Lively Member
    Join Date
    Jul 2008
    Posts
    107

    Re: [2008] Problem with path for project...

    BCyber,

    Your only options are to go back to the lab computer and retrieve the form or create it again from scratch.

    In the future you need to be very careful to save all files in the project as a group by always clicking the Save All button in the toolbar.

    Kerry Moorman

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2008
    Posts
    4

    Re: [2008] Problem with path for project...

    Quote Originally Posted by kmoorman
    BCyber,

    Your only options are to go back to the lab computer and retrieve the form or create it again from scratch.

    In the future you need to be very careful to save all files in the project as a group by always clicking the Save All button in the toolbar.

    Kerry Moorman

    Wow that sucks. I always use the save all button. I wonder why this happened to me. That was like 2 weeks of homework probably lost.

  4. #4

    Thread Starter
    New Member
    Join Date
    Sep 2008
    Posts
    4

    Re: [2008] Problem with path for project...

    I read somewhere you can open one of the files with notepad and change it there. Anyone done this or no what exactly to do?

  5. #5
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: [2008] Problem with path for project...

    If you have all the physical files with you and the project file is looking in the wrong places, just remove and re-add them to the project.
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  6. #6

    Thread Starter
    New Member
    Join Date
    Sep 2008
    Posts
    4

    Re: [2008] Problem with path for project...

    I managed to find another way before I read your response.

    The full path was E:\VB.NET\form\Form1.vb so I just renamed my flash drive to E:\ and created those folders and stuck all my files in there and that seems to of worked!

    If I would of listed to kmoorman I would be redoing everything. Some people...

  7. #7
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: [2008] Problem with path for project...

    I think to kmoorman's credit, he didn't think you actually had all the physical files and there were some still out on the network somewhere.
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  8. #8
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: [2008] Problem with path for project...

    Here's what happened.... when one connects a flash drive it gets the next drive letter available... let's say E: .... if you then create project (for example, at a computer lab) and put that project on the flash drive (E, saving as you go... close the IDE, remove the drive and take it home... it stores the E: as the path to the project files.... So when you connect hte drive to your home PC, unless it also happens to connect to the same letter.... the paths now become "invalid" and it "cannot find file"(s)...... THAT was the problem. It's not that the files didn't exist, it's that they COULDN'T BE FOUND because the project file had the OLD DRIVE LETTER. Re-mapping the flash drive works, as does changing the project file to reflect the correct drive letter, and if I remember right, you can also use relative paths to avoid the problem all together.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  9. #9
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: [2008] Problem with path for project...

    BCyber, I don't know if you saw kmoorman's last response (which I deleted). If so I apologize for him. You should also know that flaming is not allowed here and I've sent him to his room for a time out.

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