Safety of opening .txt files [closed] - text-files

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
If I'm given a URL that points to a .txt file, is it always safe to open it? Can it possibly contain virus or malicious content?

A genuine txt-file can contain virus code but it cannot be executed, so it's totally safe. However, a file can use double file extension like this, so watch out:
a-virus-file.txt.exe
Windows hides by default .exe because it's a known file type.

It is not safe to rely solely on a file extension. The real file type can easily be masked by someone changing the extension, so the file could easily be a virus or malicious content.
For example:
MyVirus.exe -> SeeminglyHarmlessFile.txt

Related

How to write a program that detects address of files that were copied to a USB drive? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I want to write a program that detects address of files that were copied to a USB drive? I want to Every time files were copied to a USB,address of files show in console .How can i do that?
It would depend on the language you chose to use for the job, but regardless you would want to use a library that watches the filesystem for changes and runs a method when a new file is added. If you provide more information about what you want, we can probably give you a more precise answer.

Renaming filename without highlight extension in Mac [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
When I press return to rename a filename, automatically, the whole filename is selected (highlighted), including the extension. This is happening in some file types, including .SRT.
In most of the file types, this won't happen. They're most known file types, like JPG and TXT. I tried setting a default app to this file type but that won't fix the problem, I still get the whole filename (including extension) highlighted when press return (to rename the filename).
Any ideas?
Your system doesn't recognise .srt as a valid extension. You need to install an app that will "tell" to the operating system about this extension.
An app that did this for me was VLC
You may also find more information here:
https://superuser.com/questions/371892/osx-assign-extension-to-content-kind

Combine file transfer dialogs [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am considering upgrading my work computer to use windows 8 as the new file transferring feature seems very useful. Unfortunately after installing windows 8 on my home pc to test it out, the files are being transferred in separate dialogs as opposed to this image provided by microsoft.
As I am transferring files constantly a single transfer dialog would make things much less confusing. Does anyone know what settings to change to make file transfers appear in the same window?
To make file transfers appear in the same window you need to transfer files locally.
This is because a network connection can break out at anytime.

What are `Zone.Identifier` files, and how do I prevent them from being created? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
This post was edited and submitted for review last year and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I often see files named 'blabla.exe:Zone.Identifier' when monitoring I/O with Process Monitor.
The files are seen on network-drives.
What are Zone.Identifier files?
What does the colon mean in the filename?
Is the colon related the file's extended attributes?
How do I prevent these files from being created when I copy code files from Windows Explorer to a WSL directory?
The text after the colon is an identifier for an "Alternate Data Stream". ADS is used to store meta-information about the file. For example, the Zone identifier stores whether the file was downloaded from the internet.
Some specific info about URL Security Zones, Zone.Identifier Stream Name
See also Technet, Heysoft and this article about alternative data streams.
Finally, here's Streams, the Sysinternals tool for ADS.

What is the trick with c:\program? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 13 years ago.
Improve this question
I found that taking any exe file, renaming it to program (without extension) and putting it in C:\ root folder might cause strange things in windows like showing this application when other programs start.
What is it? is it some kind of backdoor?
p.s if you restart windows after doing so - you get a warning about it.
thanks,
Adi Barda
Maybe the fact that some programs don't know how to access C:/Program Files/. because it has a space. Then they are trying to execute C:/program, which in your case turns out to be the file you created.

Resources