Results 1 to 8 of 8

Thread: VS 2010- Moving files

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2010
    Location
    Greece
    Posts
    58

    VS 2010- Moving files

    Hello to the communtiy.

    A few days ago, I installed VS 2010, using Visual Basic as the primary language.
    Since I am still new to this, I have faced a problem.
    I have created a new project and they have been created all the neccessary files/ folders
    on desktop. I decided to move some of the files to a new folder, but project cannot
    find those files unless I place them on desktop.
    The error i get is something like this: "Unable to start program "C:\.............." .Specified file cannot be found".

    What can I do?

    Thanks
    Stratos

  2. #2
    Lively Member
    Join Date
    Jan 2013
    Posts
    66

    Re: VS 2010- Moving files

    Have U tried. Tools - Options - Projects and solutions and then adjusted the Project location?

  3. #3
    Bad man! ident's Avatar
    Join Date
    Mar 2009
    Location
    Cambridge
    Posts
    5,401

    Re: VS 2010- Moving files

    Another thread that lacks code.
    My Github - 1d3nt

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: VS 2010- Moving files

    Why would you create a project on the desktop in the first place? Visual Studio has a dedicated Projects folder and there's really no reason not save all your projects to that folder.

    Regardless of that, what files did you move, where to, how and why? You can move files but you have to do it in the right way. If there location is recorded somewhere and you move the file without changing that reference then of course the project won't work.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2010
    Location
    Greece
    Posts
    58

    Re: VS 2010- Moving files

    @Tonyallan8128. It didn't help your suggestion.
    @jmcilhinney. I copy-paste the files from desktop to the new folder. I moved the form.vb, form.resx and the Form.Designer.vb

  6. #6
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: VS 2010- Moving files

    Well that's not going to work. You need to copy the entire project folder to a new location so that the solution file can be opened in the right relationship to the remainder of the files.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: VS 2010- Moving files

    The VBPROJ file contains the relative path of each file in the project. If you move a file then you have to change that reference too. If you move a file in the Solution Explorer then the IDE does that for you. If you move the files in Windows Explorer then you can edit the project file by hand but I would recommend against that. What I would recommend is that you put your projects in the Projects folder in the first place and, if you move anything outside the IDE, move the solution folder and everything in it as a group and nothing else unless you absolutely have to.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  8. #8

    Thread Starter
    Member
    Join Date
    Sep 2010
    Location
    Greece
    Posts
    58

    Re: VS 2010- Moving files

    Thanks for the replies guys.
    I think a found an easier solution. I have just deleted the form from the solution explorer, I moved the form to the new folder and then added the form once again from the project menu.

Tags for this Thread

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