|
-
Sep 24th, 2008, 02:41 PM
#1
Thread Starter
New Member
[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
-
Sep 24th, 2008, 03:02 PM
#2
Lively Member
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
-
Sep 24th, 2008, 03:19 PM
#3
Thread Starter
New Member
Re: [2008] Problem with path for project...
 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.
-
Sep 26th, 2008, 10:36 PM
#4
Thread Starter
New Member
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?
-
Sep 26th, 2008, 10:41 PM
#5
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.
-
Sep 26th, 2008, 11:12 PM
#6
Thread Starter
New Member
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...
-
Sep 26th, 2008, 11:24 PM
#7
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.
-
Sep 27th, 2008, 10:21 AM
#8
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
-
Sep 27th, 2008, 10:34 AM
#9
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|