CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2003
    Location
    Timisoara, Romania
    Posts
    460

    Where is my code?

    So here is a funny question I have a lot of versions of my code all over my computer. Everytime I save it as bak_1, or as change_2, or last_code... I have now VB opend and I'm sure that the project I'm now modifing is the last but how can I know where is it on the disk?
    Thanks!
    You liked it? Please show your gratitude and rate it!

    There is no 'patch' for stupidity.

  2. #2
    Join Date
    Apr 2007
    Posts
    19

    Re: Where is my code?

    Hi VMA ,

    In the solution explorer properies if your file ... filename and full path information At least in C# C++ in Visual Studio you find the locations like this ...

    Anyhow a tip save your files allways with incrementing numbers like myFile_20070426_001 ... or use a source control software for the versions ... Like Visual Source Safe ...

    Best regards

    WRZLBRNFT

  3. #3
    Join Date
    Apr 2006
    Location
    Kolkata, India
    Posts
    278

    Re: Where is my code?

    Search with the Search Feature of Windows.
    You have the option to "When it was modified?
    "What size it is?" etc
    Try these you will find the code.
    Try & save the Projects in specific names & Folder.
    Like If you are doing for Factory, Factory will be Folder name Relevent with the Project.
    Upon completion of the project ZIP it up with name & date & Upgrade Sequence number.
    Okay
    Rahul

  4. #4
    Join Date
    Oct 2003
    Location
    Timisoara, Romania
    Posts
    460

    Re: Where is my code?

    I know what I should do and I know to use versions for my code but I'm not doing :P I guess is just because I'm lazy. Anyway in VB project explorer the path of the files is not mentioned.
    You liked it? Please show your gratitude and rate it!

    There is no 'patch' for stupidity.

  5. #5
    Join Date
    Apr 2006
    Location
    Kolkata, India
    Posts
    278

    Re: Where is my code?

    Okay VMA (LazyGuy
    Try & load any older version of VB Project !
    You are bound to receive an error message.
    It gets logged in a log file.
    Open that file & read which file it is searching for.
    Search your HDD for the same file /form.
    Go back to VB
    Under project Find Add Form point the cursor to that file you feel matches.
    Everything is okay now.
    Rahul

  6. #6
    Join Date
    Oct 2005
    Posts
    158

    Re: Where is my code?

    If you know that you are working with the most recent, you can click Save As. That will start you off in the current directory, so you can see where it's saved.

  7. #7
    Join Date
    Apr 2007
    Posts
    19

    Re: Where is my code?

    Hi vma,

    Just about your comment that the File Path is not shown in VB Project, I will email you a screenshot which allows you to see where to look at ... because the pathname in Visual Studio is also shown for each file in the Solution Explorer in Visual Basic I just verified it.

    You need to select the file in the solution explorer (which must be displayed on the screen - select with View - Solution Explorer) and show its Properties (Right click on the file and click properties in the popup menu.
    Then there you will find and non editable propertie (Greyed) with the Full Path.

    Check your email for the screenshot

    Best regards

    WRZLBRNFT

  8. #8
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Where is my code?

    @WRZLBRNFT:
    What you have seen is in Visual Studio .NET IDE, however VMA is talking about Visual Studio 6 IDE. They are quite different and the path is not shown in the properties window in case of Visual Studio 6.

  9. #9
    Join Date
    Oct 2003
    Location
    Timisoara, Romania
    Posts
    460

    Re: Where is my code?

    So let's clear this out. We are on VB 6.0 Forum. There is no Solution in VB 6.0, only Project. And in Project Explorer the files doesn't show you the path. I don't have .NET instaled. Maybe there it shows.
    Thank you anyway!
    You liked it? Please show your gratitude and rate it!

    There is no 'patch' for stupidity.

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