1

I have basically two images : 1. one with jpeg and file "attributes" as 'N' as seen below : enter image description here

Now i m trying to create image with same property but whenever i create new image or edit the same image the attribute chnages to 'A'. can anyone please tell me how to replicte same image property and create a new image in windows.

KOTIOS
  • 233

3 Answers3

1

N stands for Normal (FILE_ATTRIBUTE_NORMAL = 128 (0x80)). According to Microsoft, it signifies:

A file that does not have other attributes set. This attribute is valid only when used alone.

So the only way to set N is to clear all other attributes. At the command prompt just type:

attrib -h -a -i -r -s <file name>

to end up with N in Windows Explorer.

Karan
  • 57,289
0

Attributes 'A' and 'N' stand for archived and not content indexed. They have to do with what the OS sees to do with the file; here's a good discussion around the 'N' attribute. https://groups.google.com/forum/?hl=en#!topic/microsoft.public.windows.vista.general/QC26y9h4Lw4

Follow this to toggle the N attribute, though it may not be immediate:

Right-click the file > Properties > Advanced > Check / Uncheck the 'Index this file / folder ...' option and you'll see it disappear / appear

Abraxas
  • 4,486
0

You can use Xcopy command with a flag (/K) to retain attributes. Example: xcopy \K C:\path\to\file\picture.jpg newpicture.jpg

Here's more on Xcopy and other flags for retaining permissions, etc... https://support.microsoft.com/en-us/kb/323007

There's also a small portable NirSoft utility that will allow you to individually or bulk change file properties. Here