- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello -
To get around this problem of disappearing source files, I wrote a little batch file that
copiesmy source files over to another folder.
Now what I would like to do is have it repeat every 5 minutes, so I only lose 5 minutes
of work maximum. I tried using the AT command, but could not get it to work. I think it needs a specific time
rather than a time relative to the current clock.
Setting up a FOR loop might be a possibility, but I then have to figure out a way to increment the run time every 5 minutes.
Any suggestions?
BTW, where does VS 2008 keep the files that one is editing but not stored in theproject folder?
You can edit a source file and still run the code before it's stored anywhere, so there must be
a temp location.
To get around this problem of disappearing source files, I wrote a little batch file that
copiesmy source files over to another folder.
Now what I would like to do is have it repeat every 5 minutes, so I only lose 5 minutes
of work maximum. I tried using the AT command, but could not get it to work. I think it needs a specific time
rather than a time relative to the current clock.
Setting up a FOR loop might be a possibility, but I then have to figure out a way to increment the run time every 5 minutes.
Any suggestions?
BTW, where does VS 2008 keep the files that one is editing but not stored in theproject folder?
You can edit a source file and still run the code before it's stored anywhere, so there must be
a temp location.
Link Copied
10 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As far as I know VS edits in place. When the file namehas "*" on the edit window (tab) it indicates the memory contents of the file differ from the disk immage. When you File Save (or Save ALL or Build) the memory contents overwrite the source file. IOW there is no .BAK file (think of how NOTEPAD works).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried Googling 'Windows 7 virtualstore' and looking through the rants there to see if any of the links ressemble your problem?
Adding 'vanishing files' to the search string throws up more interesting stuff, such as
"DEP is the culprit here, not the UAC (User Account Control?)
DEP (Data Execution Prevention) stops files from being written back to sensitive areas (Program Files, Windows & ProgramData (hidden folder)), instead a 'bookmark' is left and the files are shunted to the VirtualStore (C:\Users\\AppData\Local\VirtualStore
(AppData is another hidden folder)), older programs can have problems as
they don't recognize the bookmarks."
Are you running Vista or Windows 7?
Are your program files located in 'sensitive' folders?
See "http://windowsteamblog.com/windows/b/developers/archive/2009/08/04/user-account-control-data-redirection.aspx", and also
"http://qatechtips.blogspot.com/2010/01/windows-7-windows-vista-virtual-store.html"
Go back to XP Pro!
Adding 'vanishing files' to the search string throws up more interesting stuff, such as
"DEP is the culprit here, not the UAC (User Account Control?)
DEP (Data Execution Prevention) stops files from being written back to sensitive areas (Program Files, Windows & ProgramData (hidden folder)), instead a 'bookmark' is left and the files are shunted to the VirtualStore (C:\Users\
Are you running Vista or Windows 7?
Are your program files located in 'sensitive' folders?
See "http://windowsteamblog.com/windows/b/developers/archive/2009/08/04/user-account-control-data-redirection.aspx", and also
"http://qatechtips.blogspot.com/2010/01/windows-7-windows-vista-virtual-store.html"
Go back to XP Pro!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In windows XP, you can use "scheduled tasks" under "control panel" to run a batch job. I'd imagine that Windows 7 must have something similar. You start out setting an initial time for it to run, then you use the advanced settings to make it run every x hours, or x minutes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, Windows 7 has this. Control Panel > Administrative Tools > Task Scheduler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"BTW, where does VS 2008 keep the files that one is editing but not stored in the project folder?
You can edit a source file and still run the code before it's stored anywhere, so there must be a temp location."
Memory, I would imagine.
""To get around this problem of disappearing source files, I wrote a little batch file that copies my source files over to another folder."
I have two systems and I've never seen a source file dissapear. Either you have an operator problem or a hardware problem.
Making a batch file repeat itself it not difficult with a loop but I donot think that's going to have a lot of utility in this case because of delay.
I would want to know WHY files are dissapearing.
Renee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If it is a new file you have not saved yet, it is in memory. You need to save it before compiling (it will automatically save for you). By default it will be placed in the folder containing the project, but you select this when you go through the New File dialog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have not experienced a problem with dissappearing source files before. I would not consider thisto be a good practical solution but I have in the past wrote my own scheduler in Fortran that would execute an external command/batch file using the Fortran statement "RUNQQ". In the code you can monitor the system clock and then trigger the RUNQQ command at your prescribed time interval.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bill,
It's occurs to me that the File System Watcher that is a part of the VS may be the tool to use. I've used it but i do believe it is asyncronous and will help.
Renee
It's occurs to me that the File System Watcher that is a part of the VS may be the tool to use. I've used it but i do believe it is asyncronous and will help.
Renee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The source files disappear ONLY when I am editing them with the VS 2008 IDE.
No other types of files disappear, just F90 source files.
I have also noticed that it does NOT happen when there is a large number of source
files in the project, only when there is perhaps two or three, so it would not happen
with a large project. That's probably why most users never see this.
I tried turning off the anti-virus package, but that had no effect.
One possible way around this is to add a bunch of dummy files to the project to make it larger.
I will try the File Watcher tool, see what it does.
No other types of files disappear, just F90 source files.
I have also noticed that it does NOT happen when there is a large number of source
files in the project, only when there is perhaps two or three, so it would not happen
with a large project. That's probably why most users never see this.
I tried turning off the anti-virus package, but that had no effect.
One possible way around this is to add a bunch of dummy files to the project to make it larger.
I will try the File Watcher tool, see what it does.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is a link you migth find helpful
http://sogeeky.blogspot.com/2006/07/how-to-audit-and-track-file-deletions.html
Jim Dempsey
http://sogeeky.blogspot.com/2006/07/how-to-audit-and-track-file-deletions.html
Jim Dempsey
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page