HCMD Tool Developer
6273 20 3- _Christopher_
- Member
- 767 posts
- Joined: 4月 2014
- Offline
- mtucker
- スタッフ
- 4512 posts
- Joined: 7月 2005
- Offline
- _Christopher_
- Member
- 767 posts
- Joined: 4月 2014
- Offline
- mtucker
- スタッフ
- 4512 posts
- Joined: 7月 2005
- Offline
What sort of command line options? What are you trying to accomplish?
The hcmd “application” (it does so little I hesitate to call it an application) just sets some environment variables and starts “cmd.exe” (the Windows Shell). I'm really not sure what you might want to accomplish with command line options that you couldn't accomplish just as well with a batch script?
The hcmd “application” (it does so little I hesitate to call it an application) just sets some environment variables and starts “cmd.exe” (the Windows Shell). I'm really not sure what you might want to accomplish with command line options that you couldn't accomplish just as well with a batch script?
- mandrake0
- Member
- 642 posts
- Joined: 6月 2006
- Offline
- mandrake0
- Member
- 642 posts
- Joined: 6月 2006
- Offline
- _Christopher_
- Member
- 767 posts
- Joined: 4月 2014
- Offline
- mandrake0
- Member
- 642 posts
- Joined: 6月 2006
- Offline
- mtucker
- スタッフ
- 4512 posts
- Joined: 7月 2005
- Offline
- _Christopher_
- Member
- 767 posts
- Joined: 4月 2014
- Offline
- mtucker
- スタッフ
- 4512 posts
- Joined: 7月 2005
- Offline
- _Christopher_
- Member
- 767 posts
- Joined: 4月 2014
- Offline
- mtucker
- スタッフ
- 4512 posts
- Joined: 7月 2005
- Offline
- _Christopher_
- Member
- 767 posts
- Joined: 4月 2014
- Offline
mtucker
Sure, you can start hcmd from within powershell, but I assume what you want is to start hcmd within powershell and “remain” in powershell. In which case you can run “hcmd /c powershell”.
hconfig : The term ‘hconfig’ is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ hconfig -a
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (hconfigtring) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
【T】【C】【S】
- mtucker
- スタッフ
- 4512 posts
- Joined: 7月 2005
- Offline
I suspect there has been some sort of miscommunication here. Certainly if I start powershell and type:
But I can only assume you didn't run “hcmd /c powershell” as I suggested. Because within a powershell window I can do:
In other words I am still in powershell, and I have access to all the Houdini binaries. If I have understood correctly, this is what you've been trying to accomplish. If not, please explain again what you're trying to do. And if my above instructions don't work for you, please give a similar step by step playback of what you are doing and where it's going wrong. Use the
Thanks,
Mark
PS C:\Users\mtucker> hconfig -a
hconfig : The term 'hconfig' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ hconfig -a
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (hconfig:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
But I can only assume you didn't run “hcmd /c powershell” as I suggested. Because within a powershell window I can do:
PS C:\Users\mtucker> cd 'C:\Program Files\Side Effects Software\Houdini 16.5.252\bin'
PS C:\Program Files\Side Effects Software\Houdini 16.5.252\bin> .\hcmd /c powershell
Welcome to the Houdini 16.5.252 command line tools.
The Houdini environment has been initialized. [Windows 10.0.10586]
Starting command prompt...
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Program Files\Side Effects Software\Houdini 16.5.252\bin> hconfig -a
EDITOR := '<not defined>'
FPS := -1
HFS := 'C:/PROGRA~1/SIDEEF~1/HOUDIN~1.252'
.....
In other words I am still in powershell, and I have access to all the Houdini binaries. If I have understood correctly, this is what you've been trying to accomplish. If not, please explain again what you're trying to do. And if my above instructions don't work for you, please give a similar step by step playback of what you are doing and where it's going wrong. Use the
[code][/code]
markup in your message to display the formatted output like I did here for readability.Thanks,
Mark
- _Christopher_
- Member
- 767 posts
- Joined: 4月 2014
- Offline
- mtucker
- スタッフ
- 4512 posts
- Joined: 7月 2005
- Offline
- _Christopher_
- Member
- 767 posts
- Joined: 4月 2014
- Offline
- mtucker
- スタッフ
- 4512 posts
- Joined: 7月 2005
- Offline
- pbowmar
- Member
- 7046 posts
- Joined: 7月 2005
- Offline
Thanks for the explanation Mark, as a fairly neophyte Windows user, could I please RFE hpowershell.exe that allows direct access of Houdini via Powershell? I can use these steps of course, but given Powershell is much stronger than cmd.exe it would convenient to have it available for every Houdini version (we run quite a few) in the Start Menu.
Cheers,
Peter B
Cheers,
Peter B
Cheers,
Peter Bowmar
____________
Houdini 20.5.262 Win 10 Py 3.11
Peter Bowmar
____________
Houdini 20.5.262 Win 10 Py 3.11
-
- Quick Links