SoftwareTipsandTricks Forum

Go Back   SoftwareTipsandTricks Forum > Operating Systems > Windows XP
User Name
Password


Get File Properties Tabs from CMD prompt?

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes

  #1  
Old 04-30-2008, 03:39 PM
humbletech99 Offline
Registered User
 
Join Date: Aug 2005
Posts: 99
Get File Properties Tabs from CMD prompt?

Does anyone know of a way to get the file/folder properties page from a cmd prompt as though you have just gone and right-clicked the file/folder in the gui?

The reason I ask is because I may have a user logged in and need to look at the file/folder properties (specifically the ntfs permissions) and because they are logged in as a user account and have no access to the folder they cannot even see the security tab of the properties box.

So I need a way from the command prompt to open the properties box of a file/folder (as I have done a runas to get an admin prompt inside their user gui session). Looking at security settings in a cmd program may also be of some interest if anyone knows that either...
Reply With Quote

  #2  
Old 04-30-2008, 06:07 PM
Disk_Contented's Avatar
Disk_Contented Offline
Temporary Ban
 
Join Date: Sep 2002
Location: In a plasma conduit
Posts: 1,625
Attrib.exe. Full command list here: http://www.ss64.com/nt/
Save the page for future use
__________________
Where there's a will, There's a way.
Pay developers, not Rapidshare!
I know nowt, but at least I'm trying.
Quality, not quantity.
Prevention is better than cure.
Reply With Quote

  #3  
Old 05-01-2008, 05:19 AM
humbletech99 Offline
Registered User
 
Join Date: Aug 2005
Posts: 99
no I don't think so, attrib deals with old file attributes like hidden and system flags and doesn't display ntfs acls.
Reply With Quote

  #4  
Old 05-01-2008, 06:25 AM
MrBeatnik Offline
Registered User
 
Join Date: Apr 2008
Posts: 22
cacls.exe

Run this for cammand line options, but cacls <filename> will show the NTFS perms for that file.
Reply With Quote

  #5  
Old 05-01-2008, 08:32 AM
humbletech99 Offline
Registered User
 
Join Date: Aug 2005
Posts: 99
yes I've used this.

I still am wondering about opening the file properties dialog box from cmd though...
Reply With Quote

  #6  
Old 05-01-2008, 10:08 AM
MrBeatnik Offline
Registered User
 
Join Date: Apr 2008
Posts: 22
Ohh, you mean opening the actual GUI (window) from a cmd box running from within the Windows shell? I thought you meant accessing the information that would be IN the GUI, but from DOS as the shell.

This is explorer.exe interaction with a DLL (or two).
You will need a VB script or some WSH scripting to call the actions you are wanting, which can be called from a cmd line. http://msdn.microsoft.com/en-us/libr...31(VS.85).aspx

It might work with rundll.exe ; perhaps something like:
rundll32.exe shell32.dll,SHObjectProperties,filename
Reply With Quote

  #7  
Old 05-01-2008, 10:26 AM
humbletech99 Offline
Registered User
 
Join Date: Aug 2005
Posts: 99
that didn't seem to bring up anything even though rundll32.exe was running in the process list and the docs aren't very clear on how to call this through rundll32.exe...
Reply With Quote

  #8  
Old 05-01-2008, 10:38 AM
MrBeatnik Offline
Registered User
 
Join Date: Apr 2008
Posts: 22
Yes, the command I gave was an example, but I didn't know if it would work. The command will work if you can get the correct variables for the SHObjectProperties part.

Do some searching on SHObjectProperties. I think the best way to do this is using a script of some kind; not all commands are possible from a dos prompt, but if you keep looking at the commands I have shown you will find an answer.

If I remember right, SHObjectProperties requires fully qualified path to the file, amongst other things.

Good luck!
Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not burn a DVD for the life of me seal2be Software Problems and Useful Utilities 13 03-12-2008 05:35 AM
problems with audio das31 Drivers 13 03-01-2008 09:11 PM
XP (SP2) page file error kminardi Windows XP 0 02-01-2008 08:05 PM
Malware attack!!! bhyde Windows XP 0 01-22-2008 10:29 PM
[HELP PLZ] Can't Delete A File XenoBreak Windows XP 22 02-12-2006 06:26 PM



All times are GMT -5. The time now is 06:47 PM.


Designed by eXtremepixels. Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.