Set a file properties to hidden
how to set a file properties to "hidden" in windows??
is there anyway of doing that?? help
how to set a file properties to "hidden" in windows?In WindowsExplorer right click on the icon representing the file and choose "Properties". In the "General" tab and click the "Hidden" check box in the "Attributes" section near the bottom of the dialog box.
The File class doesn't offer a setHidden() to match isHidden(), so I would guess that this isn't possible in Java without resorting to Runtime.exec() or similar to set the attribute with a command. Windows has an attrib command that does this.
attrib +h foo.txtEdited by: pbrockway2 on Jan 2, 2008 6:56 PM
Too slow!
Similar Messages
-
Revision: 1657
Author: [email protected]
Date: 2008-05-09 17:37:18 -0700 (Fri, 09 May 2008)
Log Message:
Rebuilt our modified Batik and Velocity JARs after setting the file properties correctly on modules/thirdparty.
Modified Paths:
flex/sdk/trunk/lib/batik-all-flex.jar
flex/sdk/trunk/lib/velocity-dep-1.4-flex.jarHi DST
This is a great effort and gesture. thank you on behalf of all the newbies.
PJ -
National character set in file *.properties
Do you know how to set national chafracter set in file with extention .properities? It is very comortable put all text in this file, but it doesn't display correctly. If I write something on JSP page (not from file *.properties) it displays in a proper way. Have you solve such problem?
You're talking resource bundles?
Check out the tool "native2ascii" that comes with java.
http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html#intl -
How can I set a file to hidden
Hi all
How can I set a file to hidden from within Java.
This is what I have tried so far but with out any luck
String[] cmd = new String[3];
cmd[0] = "cmd.exe";
cmd[1] = "attrib +h";
cmd[2] = "\""+"C:/program files/Licence.xml"+"\"";
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(cmd);Thanks
CraigTry
cmd[0] = "attrib"
cmd[1] = "+h"
cmd[2] = "C:\Program Files\Licence.xml"
You may need to double the baskslashes
Is the spelling of "Licence" correct? -
Even after classpath setting in jserv.properties file error.
hi kali,
i have used a custom jsp page for export to excell using a jar file poi-3i-200566.jar which i deployed in oracle apps version 11.5.10.2.
the jar is put in $JAVA_TOP and class path entry is set in jserv.properties file as
wrapper.classpath=/d2_u10/....../poi-3i-200566.jar .
After setting the classpath , bounced the apache.
But even after the setting , the same error continues.
I refered the mod_jserv.log file for error details , the error is in import statement of classes present in the poi-3i-200566.jar file like
could not find the symbol HSSRow , HSSpreadsheet , etc. all these are classes in jar file.
please anybody know any extra conf is needed or any idea where i am going wrong.
thanks
prabhakr,apHi,
Please check your jserv.properties file whether the custom class path that you have set is present or not in jserv.properties after restarting the AutoConfig and Apache server.
Thanks & Regards,
Sagarika -
How do I set file properties (win XP) ?
Does anyone know how to set/modify a windows file properties inside Labview ? For exemple : change the author, the comment... etc.
Thank you !
J.K.Hello,
It is not possible with advanced file I/O LabVIEW VIs.
There is a possible workaround by using low level Windows functions in a dll.
Perhaps the easier would be to set your properties at the top of your file.
You will find some explanations here :
http://forums.ni.com/ni/board/message?board.id=170&message.id=85101&requireLogin=False
regards
Marc L.
NIF -
Why isn't ratings information set in lightroom showing up in windows explorer file properties?
I am using Lightroom 3.4 64 bit on Windows7 64 bit. When I apply keywords and set a rating in lightroom, only the keywords show up in the file properties in windows explorer, and FastStone viewer. The ratings information is not shown. Is this a known problem, or is there a way to fix it?
I am using Lightroom 3.4 64 bit on Windows7 64 bit. When I apply keywords and set a rating in lightroom, only the keywords show up in the file properties in windows explorer, and FastStone viewer. The ratings information is not shown.
Hmm, are you remembering to do Metadata > Save Metadata To File after you change the rating in LR?
LR and Windows 7, Vista, and even XP (if you install Windows Live Photo Gallery) share metadata using industry-standard fields, and Windows' manipulation of the metadata is pretty robust. In particular, they'll share the rating via the metadata field XMP:Rating. I just verified this with LR 3.4 and Windows 7, but I'm pretty sure it also applies to earlier versions of LR 3:
1. In LR 3.4, change the rating of an image.
2. Metadata > Save Metadata To File
3. In Windows Explorer, right-click the image file and select Properties.
4. Observe the new rating on the Details tab.
5. Change the rating on the Details tab.
6. In LR, do Metadata > Read Metadata From File. Observe the new rating in LR. -
Is it possible through labview to set and read window¿s based file properties​?
Any file in XP operating system has file properties associated with it, such as, size, location, when the file was created, modified and last accessed. I know that Labview has the ability to access the size and modified property. Other file types such as image format types jpg, bmp and tif have additional associated properties such as: title, subject, author, and comments. Is it possible through labview to read and set these properties programmatically?
Hpopenoe wrote:
> Any file in XP operating system has file properties associated with
> it, such as, size, location, when the file was created, modified and
> last accessed. I know that Labview has the ability to access the size
> and modified property. Other file types such as image format types
> jpg, bmp and tif have additional associated properties such as: title,
> subject, author, and comments. Is it possible through labview to read
> and set these properties programmatically?
Well, you can most probably do that by calling Windows API functions.
Note however that the properties you mention are not generic Windows
file properties but file specific internal attributes. Explorer does at
least in XP handle some of those properties and shows them to the user
but does so with internal file type handlers to extract the properties
from the file.
I'm not sure those file type handlers are actually available for other
applications than Explorer without quite some work. If they are
available they are certainly not part of the standard Win32 API but most
probably part of the Windows shell component and I would guess not just
through normal API function calls, but through the shell namespace
enumeration, which is built on COM interfaces, something you only can
call from standard programming languages, most of them are done in C++
(and if you are a little more persistant in standard C).
So you are likely to need to either write your own DLL doing the nitty
gritty work of calling the shell interface and using that DLL in LabVIEW
or find an Active X component which does the work for you. No doubt
there is such an Active X component somewhere but how good and expensive
is always a big question.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
File properties cannot be set anymore?
Hi,
I have an application reading custom file properties (name/values accessible using dsofile.dll) to take actions on the processing of these files.
Using win xp/vista, right-click on file, there is a tab "custom" where file properties/values can be added.
In win 8.1 pro: no file properties available, and no way to add them! If I go to work, I can add properties, but these are NOT accessible using dsofile.dll.
If I take a file from old computer, copy it to new one, there is a custom tab and I can view file properties. But no possibility to edit them nor to add properties to a new file.
Any hint? Is it a deprecated feature / regression? Do I have to install something (component, ...)?
Regards.
Alain BourgeoisHi Alain Bourgeois,
I set up an environment and tested it according to the information listed below:
http://support.microsoft.com/kb/224351
Indeed, it didn’t work when you created a new office document, office 2007 Or office 2013, I get the error shown as below:
After clicking the Detail it gives the following information:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Runtime.InteropServices.COMException (0x800300FC): The name is not valid. (Exception from HRESULT: 0x800300FC (STG_E_INVALIDNAME))
at DSOFile.OleDocumentPropertiesClass.get_SummaryProperties()
at FilePropDemoVB7.FilePropDemo.OpenDocumentProperties() in D:\CDBackup\Projects\dsofile\2.1\Samples\VB7\FilePropDemo.vb:line 535
at FilePropDemoVB7.FilePropDemo.cmdOpen_Click(Object sender, EventArgs e) in D:\CDBackup\Projects\dsofile\2.1\Samples\VB7\FilePropDemo.vb:line 724
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
This message gives the detail information to solve this issue, but I am not a professional developer, I will continue to find causes related to Windows, if there might be any, meanwhile, I suggest to post it at the VBA forum:
http://social.msdn.microsoft.com/Forums/en-US/home?forum=isvvba
Regards
Wade Liu
TechNet Community Support -
Visual Studio Projects Not Showing FileVesion Leading Zeroes in File Properties
I created a simple Visual Studio 2013 windows form application setting the AssemblyInfo.cs file as show below.
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0227")]
[assembly: AssemblyFileVersion("1.0.0.0227")]
[assembly: AssemblyInformationalVersion("0.0.0.0227")]
I built the application and went to the Windows File Explorer and brought up the file properties. What I see is that the product version showing the leading zeros, but the file version field does not show the leading zeros.
It appears to be a bug either with Visual Studio or with Windows. Which one is it and is there a fix?Hi Sarah,
We can't see the screenshot. Do you mean you use Windows Explorer to browse to the AssemblyInfo.cs file and check the property?
If you change the product version or the file version from the AssemblyInfo.cs file, you need to firstly rebuild the assembly, then if you go to the debug/release folder, check the property of the assembly file, the Details tab will show you the corresponding
changes of these properties. It's the assembly property but not the cs file property.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
File properties: mysterious dates for created, modified and last opened
I've seen this ever since I started using my Mac - I am a relatively new Mac user (a year or more vs. well, decades on Win/PC).
Finder: click on a file and it will show its properties. It will have a "More info" button.
The dates displayed between the 2 above are different.
1) In the "immediate" display it would say something like:
Last opened: Today at 10PM
- this wrong day, "correct" time
- considering that it will display this at say 7AM "today"...well, it's a "future" date/time
2) If you click the More info button, the "truth" comes out
Last opened: Yesterday at 10PM (accurate)
Never really cared, but thought I'd ask here. At some point, if I start some development on the Mac, and filesystems, file properties are involved, this will obviously be an issue. I don't even know if this affects file searching based on these properties - again, new user, using Mac for very specific purpose, but usage is definitely on the rise, so I'd like to get some direction on very basic OS behavior like this fully understood.
Thanks and happy new year to all!EdSF wrote:
Thanks VK. I'm the only user.
Can you please clarify on what user accounts have to do with this behavior?
I've seen many times when corrupt date settings in the global user preference file cause wrong modified dates to be displayed in finder. in that case if you make a different user they will be displayed correctly. the file in question is ~/library/preferences/.GlobalPreferences.plist.
It's ok to be technical in your response....if it goes over my head, I'll be frank and ask for clarification....
- Is it a user-defined preference/setting?
- It's almost like a busted UTC/time zone routine (somehow "TODAY" is UTC, but the time value doesn't match) re: 10PM last night on PT is/was "today" in UTC.... -
SSIS 2012 Script Task to Get File Properties
Hello,
I researched on how to grab a file properties such as file size, file modified date, etc and I came across the following
link:
I followed exact steps and when I went to execute the package, I got the following error:
Below is the code:
// C# code
// Fill SSIS variables with file properties
using System;
using System.Data;
using System.IO; // Added to get file properties
using System.Security.Principal; // Added to get file owner
using System.Security.AccessControl; // Added to get file owner
using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;
namespace ST_cb8dd466d98149fcb2e3852ead6b6a09.csproj
[System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
#region VSTA generated code
enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
#endregion
public void Main()
// Lock SSIS variables
Dts.VariableDispenser.LockForRead("User::FilePath");
Dts.VariableDispenser.LockForWrite("User::FileAttributes");
Dts.VariableDispenser.LockForWrite("User::FileCreationDate");
Dts.VariableDispenser.LockForWrite("User::FileExists");
Dts.VariableDispenser.LockForWrite("User::FileInUse");
Dts.VariableDispenser.LockForWrite("User::FileIsReadOnly");
Dts.VariableDispenser.LockForWrite("User::FileLastAccessedDate");
Dts.VariableDispenser.LockForWrite("User::FileLastModifiedDate");
Dts.VariableDispenser.LockForWrite("User::FileOwner");
Dts.VariableDispenser.LockForWrite("User::FileSize");
// Create a variables 'container' to store variables
Variables vars = null;
// Add variables from the VariableDispenser to the variables 'container'
Dts.VariableDispenser.GetVariables(ref vars);
// Variable for file information
FileInfo fileInfo;
// Fill fileInfo variable with file information
fileInfo = new FileInfo(vars["User::FilePath"].Value.ToString());
// Check if file exists
vars["User::FileExists"].Value = fileInfo.Exists;
// Get the rest of the file properties if the file exists
if (fileInfo.Exists)
// Get file creation date
vars["User::FileCreationDate"].Value = fileInfo.CreationTime;
// Get last modified date
vars["User::FileLastModifiedDate"].Value = fileInfo.LastWriteTime;
// Get last accessed date
vars["User::FileLastAccessedDate"].Value = fileInfo.LastAccessTime;
// Get size of the file in bytes
vars["User::FileSize"].Value = fileInfo.Length;
// Get file attributes
vars["User::FileAttributes"].Value = fileInfo.Attributes.ToString();
vars["User::FileIsReadOnly"].Value = fileInfo.IsReadOnly;
// Check if the file isn't locked by an other process
try
// Try to open the file. If it succeeds, set variable to false and close stream
FileStream fs = new FileStream(vars["User::FilePath"].Value.ToString(), FileMode.Open);
vars["User::FileInUse"].Value = false;
fs.Close();
catch (Exception ex)
// If opening fails, it's probably locked by an other process
vars["User::FileInUse"].Value = true;
// Log actual error to SSIS to be sure
Dts.Events.FireWarning(0, "Get File Properties", ex.Message, string.Empty, 0);
// Get the Windows domain user name of the file owner
FileSecurity fileSecurity = fileInfo.GetAccessControl();
IdentityReference identityReference = fileSecurity.GetOwner(typeof(NTAccount));
vars["User::FileOwner"].Value = identityReference.Value;
// Release the locks
vars.Unlock();
Dts.TaskResult = (int)ScriptResults.Success;
Eventually I am looking to just grab the Modified Date from the Windows Explorer folder and insert into table. Any suggestions? Thank you in advance!
Sanjeev
Sanjeev JhaHi SSISJoost,
I am so glad you responded to this thread. You are absolutely right. I copied the entire code including the project name (guid) and that solved the error problem.
Now, what did you do to get the message box? I added the watch and I could see the values but how do I get these values in a table? If I remember correctly, in your blog, you mentioned something about using derived columns. I am familiar with Derived Columns
but how do I do that? I appreciate your response.
Thank you.
Sanjeev
Sanjeev Jha
I used a second script task to show all variable values. It has a
MessageBox in it and between all
variables I added a
newline to make it more readable...
But with an Execute SQL Task and parameters you can also put these values in a Table... or you can read the file in a Data Flow Task and add those variables (as metadata) to each record with a Derived Column
Please mark the post as answered if it answers your question | My SSIS Blog:
http://microsoft-ssis.blogspot.com |
Twitter -
How to set a file in uploadrequest ??
hello
I want to upload a file. In the request I have the path of the file
// my.jsp
String filepath = request.getParameter(filepath);
<html:form action=/Upload method="post" enctype="multipart/form-data">
<html:hidden property="filepath" value='<%=filepath%>'/>
</html:form>
// in the MyUploadAction class
boolean isMultipart = FileUpload.isMultipartContent(request); // true
DiskFileUpload upload = new DiskFileUpload();
List items = upload.parseRequest(request);
Iterator iter = items.iterator();
while (iter.hasNext()) {
System.out.println("print somthing");
problem:
- iter is empty // iter.hasNext() -----> false
how to set the file in the request ????
/ /note: I want not to use uploadAction from struts because of designingthanksThe following blog post provides a way to create a document set using ECMA:
http://blogs.msdn.com/b/mittals/archive/2013/04/03/how-to-create-a-document-set-in-sharepoint-2013-using-javascript-client-side-object-model-jsom.aspx
The following blog post provides a way to upload files into a document set using CSOM:
http://www.c-sharpcorner.com/Blogs/12139/how-to-create-document-set-using-csom-in-sharepoint-2013.aspx
See if you can follow the logic in the CSOM example to apply it to ECMA. Let me know if you have specific problems with it.
Dimitri Ayrapetov (MCSE: SharePoint) -
Windows File Properties vs. Content Services Properties
Hi.
On behalf of a customer I am evaluating Windows file properties vs. CS file properties.
Client Environment: Windows XP SP2, O-Drive.
Rightclick a File stored on O (O-Drive, Content Services).
a Props. Dialog shows up, the first tab is General*. It shows several file
properties among others the following:
- Last Access Date: This always shows Wed. 1 Jan 1986 00:00:00
Does this correspond to any content services file property? If so, why
is it always 1-jan-1986 00:00.00 and does not change? Is it a bug?
- Checkboxes Write protected* / Archive* / Hidden*
Do these correspond to any cs file property? Do these have any effect?
(I tried write protected, but it did not work as expected, I was able
to overwrite the file) Bug or Feature?
If these checkboxes do not work, could these be disabled through O-Drive,
otherwise users might get confused...
Regards, Tom
* (I don't know the exact english labels as I am working on a german client... so
I translated the german labels - sorry)Hi. Sure, here's some collateral information:
We are evaluating Content Services for several customer projects.
During a presentation I held 2 weeks ago a customer asked exactly
those questions and I had to admit I could not answer.
So I retried on our test instance and checked the docu and still
could not get a clue how windows attributes and cs attributes correspond.
Then I asked MJS during last weeks workshop he did not know exactly either.
Hence I am asking on the forum.
Regards, Tom
(PS. If you require further background information you may contact me via email
or ask E. Neuwirth on Tom Gansor / OPITZ Consulting). -
Extracting "File Properties" metadata from Photoshop CS3
After processing scanned images in Photoshop CS3, I am up loading them to a DAM solution that has the capability to extract embedded metadata using custom defined keys. I would like to know the syntax/structure of embedded metadata labels that display in the "File Properties" template of Bridge CS3 (e.g. File Size, Dimensions, Color Space) so that I can extract that metadata.
Thank you!I have this printer and use Leopard, but I don't have this problem I am useing the 6.2 driver. There are two drivers on their website, I am using only the driver that came with the machine. I would re-install the driver. Secondly and this caught me up a bit at first. You open the CS print manager, press print and then the Epson driver emerges, there i s no direct access from CS3 to the driver. Secondly in the Epson driver there are two or three set of drop down menus, the one that permits setting the paper profile is not exactly where you expect it, just have a look through all the menus(I am not sitting in fronto of my mac right now so I am of limited help). Good luck.
Maybe you are looking for
-
my iphone 4s is not showing up in my itunes. I have tried to update itunes but it is telling me that it is the newest version. Have also tried to update my mac, which is also telling me it is the latest version (no updates) but i dont think it is. an
-
Is it possible to create invoice for Free of Charge order
Dear All, Is it required to create a Billing document for an Free of charge order as far as Indian scenario is concerned. We are not charging any value to the customer for Free of Charge. Free of Charge order value will be Zero only. In this case, is
-
Performance Tuning for non Administrator users
Hi, Since i had performance issue on my cube i have followed tutorial: http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/aggpersist/aggpersist.htm to obtain best performance using aggregate tables. All works, but opening NQSQuery.log i've seen t
-
I am trying to build a query with 1)Customer name,Account number and monthly revenue. 2) Customer name, Year-to -date revenue. I dont know which tables should i join to get the results.
-
C mon nokia give an option to enroll back to 8.0
I am tired that i have downloaded 8.1 dev preview and i cant go back to 8.0 now whats wrong with this now i am facing alot of problems in 8.1 sometimes my phone is taking around 5 minutes to unlock specially when transferring files from pc to sd card