I have saved few files in Program files.When I checked again, the files are not seen. I tried searching the system with the file name, but it is not found.
How did the files disappear?
And is there a way to recover the files?
Related
I try to backup files by zipping the files along with path and store it in external hard drive.
When I zip the files I insist that I include the complete path of the file so that when I unzip the files , I can make the files get stored in the specified path if it all , my hard disc crashes.
When I try to search for files with the following criteria in Windows Explorer
(System.FileName: *.txt OR .doc OR .xls OR .rtf ) AND datemodified:10-03-2021 .. 06-07-2022
Whatever the results I get I right click click 7 zip and click add to (some zip file name).7z
Now when I do this I am getting the error duplicate file name on disc
Of course I will be having same file name in different directories.
Since , I am saving the path along with the file name this duplicate error should not have come.
Please help me to zip files with the same name in different directories along with the path after I enter the following search condition in the Windows Explorer
(System.FileName: *.txt OR .doc OR .xls OR .rtf ) AND datemodified:10-03-2021 .. 06-07-2022
This useful answer shows how one can copy the given files to the clipboard. Is it possible in a similar way to copy files from a zip archive, as Explorer does? One can unzip the archive to a temporary folder and copy from there, but then there is a problem of subsequent deletion of the files, since it is not known when they can be deleted (the program may already be closed at this time).
I am zipping a folder through an antrun command with 7zip and while the command is running, there are some temporary *profile.gz files that are deleted, this causes the 7zip to show a series of warnings that it cannot find the deleted files. Is it a switch to ignore the missing files? I assume that before starting the compression, 7z collects a list of files that need to be archived.
I was messing with the move command in Command Prompt, and I accidentally moved a file into a folder that didn't exist. When I tried 'dir', the invalid folder was listed, but it wasn't a directory, and it didn't show up under 'tree'. If I renamed the file as a .zip, it had folders within like _rels, docProps, and word, as well as [Content_Types].xml. Each folder contained several more xml files, but none had the document I had just misplaced. Is there a way to get it back or have I lost it permanently?
Ok, so basically what happend is that you tried to zip the .docx document, and then you got all of these folders. It simply what happens when you zip a word document.
There's nothing strange, you can just make it .docx again and it will be as normal.
In Windows Explorer, when you open a ZIP file and double-click a file, say a JPEG file (.jpg), Windows extracts the JPEG file to a temporary folder, and passes the temporary file name to the associated program as the one and only argument, such as "C:\Users\jprice\AppData\Local\Temp\Temp1_<>.zip\<>.jpg"
I noticed that some applications, like the Windows Photo Viewer in Windows 7 know what ZIP file the temporary file came from. You can click next and previous and get the next/previous files from the ZIP file (as you do, they are also extracted to temporary files).
I've googled and prowled through system.io.packaging, but I can't figure out how to get the path of the original ZIP file (the file name is part of the temporary file path).
It's not done with the shell-->open command, Windows Photo Viewer only gets the temporary file name as far as I can tell.
The Photo Viewer command line is
%SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %1
Which doesn't help. I did use ProcessMon to watch Photo Viewer and saw it read the .zip file (probably using zipfldr.dll) but could not discover how it knew where the original zip file was.
When I try it, I notice that WinZip initializes the spawned process's current working directory to the folder that the .zip resides in. If you can extract the .zip filename from the temp file path (and older OS versions did not do that), then you can reconstruct the original .zip file path.