Home All Groups Group Topic Archive Search About

recovering the tmp file

Author
5 Oct 2005 3:05 AM
Richard P
Okay VB6 just crapped out on me and my work hadn't been saved for awhile(
don't taunt me or I'll slit my wrists. just kidding). Is there a way to
recover some of the work from the tmp file. What kind of file is that? Is
there a way to open it. Any and all answers will be greatly appreciated. TIA

Author
5 Oct 2005 3:28 AM
MikeD
"Richard P" <requested(remo***@comcast.net> wrote in message
news:edyP0mVyFHA.2880@TK2MSFTNGP12.phx.gbl...
> Okay VB6 just crapped out on me and my work hadn't been saved for
> awhile( don't taunt me or I'll slit my wrists. just kidding). Is there a
> way to recover some of the work from the tmp file. What kind of file is
> that? Is there a way to open it. Any and all answers will be greatly
> appreciated. TIA

Nope. If you haven't saved, you're screwed. As far as I know, the .tmp files
that VB creates contain no source code that you could recover.

What I strongly suggest you do RIGHT NOW is go into VB's options and set the
setting to save on run (or at least prompt to save). It's not going to help
with your current situation, but it will/can prevent a similar disaster in
the future. Sometimes, you just have to learn the hard way. Hopefully,
you've learned to save (and even backup) more often.  Probably most every
programmer can sympathize with you to some extent because we've all probably
lost code by not saving often enough. But there's really no excuse for
losing code.

--
Mike
Microsoft MVP Visual Basic
Author
5 Oct 2005 3:44 AM
Richard P
I figured as much. I usually save a lot just one of those times I was in a
zone. Oh well second time is always easier than the first. Think I'll crack
a beer and wind down. <g>
Thanks again.

Show quoteHide quote
"MikeD" <nob***@nowhere.edu> wrote in message
news:OIUZUzVyFHA.2792@tk2msftngp13.phx.gbl...
>
> "Richard P" <requested(remo***@comcast.net> wrote in message
> news:edyP0mVyFHA.2880@TK2MSFTNGP12.phx.gbl...
>> Okay VB6 just crapped out on me and my work hadn't been saved for
>> awhile( don't taunt me or I'll slit my wrists. just kidding). Is there a
>> way to recover some of the work from the tmp file. What kind of file is
>> that? Is there a way to open it. Any and all answers will be greatly
>> appreciated. TIA
>
> Nope. If you haven't saved, you're screwed. As far as I know, the .tmp
> files that VB creates contain no source code that you could recover.
>
> What I strongly suggest you do RIGHT NOW is go into VB's options and set
> the setting to save on run (or at least prompt to save). It's not going to
> help with your current situation, but it will/can prevent a similar
> disaster in the future. Sometimes, you just have to learn the hard way.
> Hopefully, you've learned to save (and even backup) more often.  Probably
> most every programmer can sympathize with you to some extent because we've
> all probably lost code by not saving often enough. But there's really no
> excuse for losing code.
>
> --
> Mike
> Microsoft MVP Visual Basic
>
>
>
Author
5 Oct 2005 8:03 PM
Chris Dunaway
MikeD wrote:

> What I strongly suggest you do RIGHT NOW is go into VB's options and set the
> setting to save on run (or at least prompt to save). It's not going to help

I seem to recall that the new version of MZ-Tools had an autosave
option.  Perhaps you could turn that on and set it to autosave every 5
minutes!
Author
5 Oct 2005 10:07 PM
MikeD
"Chris Dunaway" <dunaw***@gmail.com> wrote in message
news:1128542630.704712.186410@g49g2000cwa.googlegroups.com...
> MikeD wrote:
>
>> What I strongly suggest you do RIGHT NOW is go into VB's options and set
>> the
>> setting to save on run (or at least prompt to save). It's not going to
>> help
>
> I seem to recall that the new version of MZ-Tools had an autosave
> option.  Perhaps you could turn that on and set it to autosave every 5
> minutes!


Certainly not a bad idea or feature, but I suspect that most code is lost by
not having saved before running and whatever code changes were made cause VB
to crash.  Setting the option to save/prompt on run takes care of that
itself. Personally, I find autosave features (those that do it every x
minutes) annoying because frequently I don't WANT things saved unbeknownst
to me (IOW, when I have not explicitly saved).

--
Mike
Microsoft MVP Visual Basic
Author
5 Oct 2005 3:30 AM
Someone
What OS are you using? I am not sure if you could recover the source. Temp
files are usually located in:

C:\TEMP
C:\Windows\Temp
C:\Documents and Settings\<YourUserName>\Local Settings\Temp

You could find which one for sure by going to Command Prompt/MS-DOS Prompt
and type "set" and press Enter. Look for "TEMP=" and "TMP=", they show where
the temporary folders are.

In my case I see a lot of VBxxxx.tmp files, never tried to see what's inside
them.

Free hex editor in case you need one:

http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm


Show quoteHide quote
"Richard P" <requested(remo***@comcast.net> wrote in message
news:edyP0mVyFHA.2880@TK2MSFTNGP12.phx.gbl...
> Okay VB6 just crapped out on me and my work hadn't been saved for
> awhile( don't taunt me or I'll slit my wrists. just kidding). Is there a
> way to recover some of the work from the tmp file. What kind of file is
> that? Is there a way to open it. Any and all answers will be greatly
> appreciated. TIA
>
Author
5 Oct 2005 3:46 AM
Richard P
XP and its in the C:\Documents and Settings\<YourUserName>\Local
Settings\Temp folder. Thanks for the suggestion. I'll give it a whirl.

"Someone" <nob***@cox.net> wrote in message
news:ENH0f.316$MN6.270@fed1read04...
Show quoteHide quote
> What OS are you using? I am not sure if you could recover the source. Temp
> files are usually located in:
>
> C:\TEMP
> C:\Windows\Temp
> C:\Documents and Settings\<YourUserName>\Local Settings\Temp
>
> You could find which one for sure by going to Command Prompt/MS-DOS Prompt
> and type "set" and press Enter. Look for "TEMP=" and "TMP=", they show
> where the temporary folders are.
>
> In my case I see a lot of VBxxxx.tmp files, never tried to see what's
> inside them.
>
> Free hex editor in case you need one:
>
> http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm
>
>
> "Richard P" <requested(remo***@comcast.net> wrote in message
> news:edyP0mVyFHA.2880@TK2MSFTNGP12.phx.gbl...
>> Okay VB6 just crapped out on me and my work hadn't been saved for
>> awhile( don't taunt me or I'll slit my wrists. just kidding). Is there a
>> way to recover some of the work from the tmp file. What kind of file is
>> that? Is there a way to open it. Any and all answers will be greatly
>> appreciated. TIA
>>
>
>