Invoke Properties from cmd-line?

M

Mark V

W2K

It there a command-line method (native) to invoke a file's Properties
sheets (GUI)? Or a third-party utility for same?

Not especially interested in VBS/WMI solutions but please post if
available anyway.
 
R

Ray at

This answer exists nowhere on the entire INternet. I guess you could create
your own... Somehow or another, it will involve

ShellExecuteExA in shell32.dll

I'm sorry I can't come up with any other info. FWIW, these commands DO NOT
work.

rundll32.exe shell32.dll,ShellExecuteExA ShellExecuteA
0,"open","C:\file.txt"
rundll32.exe shell32.dll,ShellExecuteExA
ShellExecuteA(0,'open','C:\file.txt','','',1)
rundll32.exe docprop2.dll CreatePropertySheetPageW("C:\file.txt")

Ray at home
 
T

Torgeir Bakken (MVP)

Mark said:
W2K

It there a command-line method (native) to invoke a file's Properties
sheets (GUI)? Or a third-party utility for same?

Not especially interested in VBS/WMI solutions but please post if
available anyway.

Hi

I got a Michael Harris VBS solution for you ;-)

sPath = "c:\some path\some file.foo"
set shellApp = createobject("shell.application")
shellApp.namespace(0).parsename(sPath).invokeverb("P&roperties")

msgbox "ready...",vbsystemmodal


The MsgBox is added right after the invoking of the verb to pause the script,
otherwise the script will exit and immediately destroy the object so you would
not see the property sheet.
 
M

Mark V

In said:
W2K

It there a command-line method (native) to invoke a file's
Properties sheets (GUI)? Or a third-party utility for same?

Not especially interested in VBS/WMI solutions but please post if
available anyway.

Thanks Ray and Torgeir. I guess no one has written and compiled such a
command-line utility yet. Anyone interested?

I find often enough when in a CLI that the file date/time, attribs, and
even the version string are not enough. I surely hate opening
something GUI just to have to find the file and get its full properties
pages. :) Invoke GUI properties or dump (text) all properties would
be nice to have.

I may try the VBS solution even though I usually work in Batch or Rexx.
 
C

Charles Dye

Thanks Ray and Torgeir. I guess no one has written and compiled such a
command-line utility yet. Anyone interested?

I find often enough when in a CLI that the file date/time, attribs, and
even the version string are not enough. I surely hate opening
something GUI just to have to find the file and get its full properties
pages. :) Invoke GUI properties or dump (text) all properties would
be nice to have.

You mean something like this?

c:\>echo %@verinfo[d:\WINDOWS\SYSTEM\USER32.DLL,CompanyName]
Microsoft Corporation

c:\>echo %@verinfo[d:\WINDOWS\SYSTEM\USER32.DLL,InternalName]
USER32

c:\>echo %@verinfo[d:\WINDOWS\SYSTEM\USER32.DLL,OriginalFilename]
USER32.DLL

c:\>echo %@verinfo[d:\WINDOWS\SYSTEM\USER32.DLL,ProductName]
Microsoft(R) Windows(R) Operating System

c:\>echo %@verinfo[d:\WINDOWS\SYSTEM\USER32.DLL,ProductVersion]
4.10.2222

c:\>ver /r

4NT 5.00A Windows 98 4.10
4NT Build 120 Windows 98 Build 2222
Registered to Charles Dye
S/N CD600xxx

c:\>
 
T

Torgeir Bakken (MVP)

Mark said:
Thanks Ray and Torgeir. I guess no one has written and compiled such a
command-line utility yet. Anyone interested?

I find often enough when in a CLI that the file date/time, attribs, and
even the version string are not enough. I surely hate opening
something GUI just to have to find the file and get its full properties
pages. :) Invoke GUI properties or dump (text) all properties would
be nice to have.

I may try the VBS solution even though I usually work in Batch or Rexx.

Hi

More info here:

http://groups.google.com/[email protected]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top