I have been having problems with creating a download list of files for a downloader and was getting unexplained "File Does Not Exist" returns. My .avi files were returning found but but .exe and .txt files were getting the not exists.
I have now found by pulling in the whole directory and examining the file contents that my .exe files are showing ".exe.exe". My .txt files are showing ".txt.rtf". Wow, browsing the file directory in Server 2008 only shows a single extension. I don't see an option to display the extension as a column, just the "type". My directory looks like this:
Name Type
File1.exe Application
File2.txt Rich Text Document
File3.avi AVI File
I had renamed some of these files, maybe I just cannot rename files. I will try using originals ans see if I am ok. Maybe I need to rename the offending files without the displayed extensions. Is this just something weird with the server browser?
Thanks,
James
Have you checked that "Tools > Folder Options > View > Hide extensions for known file types" is unchecked?
The option should be in (more or less) the same place on Windows Server 2008, I'm answering from home so I only have XP Pro to go on ;)
Obvious I know, but it sometimes is the obvious answer that we overlook.
Just to add - there's no option to show the extension in a separate column.
Windows has a "feature" that hides file extensions for known file types. Always turn that off or you'll find yourself creating problems like this.
Related
I'm missing something here, or this isn't possible...
My real goal is to eliminate the "do you want to open or save" message on excel files linked from a LOCAL INTRANET SITE ONLY. I was NOT able to limit this to the local intranet, and using regedit could only remove the message from every excel file downloaded from who knows where.
It was suggested that I create a new file extension, and do the same regedit and we'd just name our custom excel files with a different extension. Ok, trying that out, I created a new key called .sxls in HKEY_CLASSES_ROOT which has two string values (Default) REG_SZ STER.XLS.8 and Content Type REG_SZ application/vnd.ms-excel. It would in all respects be an .xls file, but with a different extension. I then went into HKEY_CURRENT_USER->SOFTWARE->Microsoft->Windows->Shell->AttachementExecute->{002DF01etc} and added a binary STER.XLS.8
Not only was the "do you want to download or" message not suppressed, excel said filename.sxls is in a different format than specified by the file extension.
So, help me out... either to limit the registry setting in AttachmentExecute to 1) a new file type, or 2) just files downloaded from local intranet, or 3) eliminate through the asp.net web app.
Thanks, John
I need to back up all the code from a server onto a local machine. By code I mean any text-based file (.php, .js, .html, etc). The server contains over 300GB of various media (.ogg, .mov, .mp4, .pdf, etc) which I do not want to download.
I am trying to use WinSCP to download only the desired files, but its not working. I set an "Input Mask", but all files are being downloaded anyway.
I would really appreciate some suggestions..
You need to add the directory in. In this case since it seems you want them from every directory, you would change your mask to */*.*html; */*.htm, etc.
While i was editing one of my css files, the power went out unexpectedly. After the power came back, i checked if the file was ok but it wasn't... it was corrupted, when opened in notepad it shows empty characters but the file size was not zero.
if you use chrome or another browsers, just give recover option when it asks when you open first time after the power shutdown. After the recovering process go to the "show code" option, copy and paste the code.
I faced the same issue recently and I found the solution. There is a corrupted file with extension .TMP. To fix it, download Notepad++ then go to the .TMP file and open the file with Notepad++. You can find your all css code in it. Just copy and paste into another blank css file and include that file in your html file. That's all.
I suffered for the same issue just now...and I've got the solution...and its simple.
Install this software called: Mini Tool Power Data Recovery
Its free and after it is installed, select the "Damaged Partition Recovery" from the first screen and navigate to the location of the file that is corrupted and select each corrupted file or the whole folder through the checkbox.
And click 'Save' and select where to save the recovered files. That's all, you should now see the original not-corrupted file there.
Thanks to Mini Tool Power Data Recovery.
Useful links:
https://www.powerdatarecovery.com/data-recovery-resources/corrupt-files.html
https://www.powerdatarecovery.com/free-file-recovery-software/how-to-recover-data-after-hard-drive-crash.html
using:
Windows 7
Asp.Net MVC3
Visual Studio 2010
All major browsers
My problem involves failing to rename a directory after opening a pdf file
I open a pdf from my website and it appears in a separate tab.
I close the tab by clicking on the little X.
I try to rename the file that contained the pdf
Get “Access to the path 'foo' is denied.”
Another manisfestaion of the same problem, probably.
I open and close the pdf from my website.
I then stop the website ( Blue square button in Visual studio)
I then try to manually rename the direcory that contains the pdf file that I just opened.
Get: "The action can't b completed because the folder or a file in it is open in another program.
Close the folder or file and try again."
If I close down Visual Studio completely, I can then rename the directory.
Many Thanks.
1) Check your folder permissions to see whether you/current user has access to change folder. You can right click on that folder and select Security tab. You may change the permissions for the user and try again.
2) How are you opening the PDF ? The mentioned error will come when there is some memory reference still with the file . If open the file using window.open (path) and you close the browser instance which had the PDF, you should be able to rename the folder without any problem.
Apparently this is a problem with Windows 7 hat has been around for a while but not yet fixed.
http://answers.microsoft.com/en-us/windows/forum/windows_7-files/in-windows-7-getting-error-the-action-cant-be/449b2e05-8ed0-4a72-98bd-dde430d27e10
I ran the website on a Windows Server 2003 machine and was able to rename the directory after opening a pdf file with no problems.
I am creating an AIR application using Flex. In it I need 2 directories downloads & uploads. These directories will have downloaded files & uploaded files.
But the problem is I am not able to create these 2 directories programmatically & also I am not able to include the 2 directories with the installer in the application directory.
Is there any way to create or include directories in the application directory.
Thanks
Create an empty folder inside your Flex project. Right click on your project and go to Properties->Compiler (not exact name but something like that). Make sure it has "Copy nonembedded assets to output directory" (check it if it doesn't). Click Ok.
Export a release build of your AIR app. Do NOT click Finish after the "signing" step. Follow each step until you get to the "assets" screen. It will show you a list of every file and folder in your output (bin-debug, by default) directory.
Check the files you want, uncheck the one's you don't, and click OK. Done. You have your AIR file packaged with whatever file and folder you want.
[...] But I need to create the directories in application directory. I am using: var dir = File.applicationDirectory.resolvePath("upload directory");dir.createDirectory(); And I am getting: at runtime::SecurityManager$/checkPrivilegeForCaller()
This is a know issue. AIR wouldn't allow you to write to the application directory. Instead try writing
either to the File.applicationStorageDirectory (application's scratchpad),
or to the File.documentsDirectory (stuff user might want to lookup)
Related resources:
Adobe AIR team blogpost
Use This Dear :)
var dir:File = File.applicationDirectory.resolvePath("NewFolder");
dir =new File(dir.nativePath.toString());
dir.createDirectory();
Regards
Ali Naqvi
have you tried something like the following
var dir = File.userDirectory.resolvePath("upload directory");
dir.createDirectory();
This will create the directory 'upload directory' if it does not already exist (inside the users home directory).
To add to johncblandii's anwser:
I've found that for the above to work, you also need to include the folder in the project's build path. I also had to refresh the project's file listing before flash builder recognized the folder and added it to the include options.
I just want to add another thing to johncblandii's comment: Create an empty.txt file and write something there. Because it looks like empty folders are nod allowed to be included in your packed application