Space in remote command


Author
Message
soundmanbe
soundmanbe
Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)
Group: Forum Members
Posts: 28, Visits: 55
Dear Yury,
We are trying to use some remote command "psexec.exe like" with some space in the command.
EX:  REG QUERY "HKLM\Software\JavaSoft\Java Runtime Environment"
The REG QUERY works perfectly until you have some space character in the QUERY.
We have try with "" '' \/ etc ... no way, the result is
ERROR: Invalid syntax.
Type"REG QUERY/?" for usage.

Do you have any idea to solve it?
Thanks in advance.
Kind regards,
Pierre





soundmanbe
soundmanbe
Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)Supreme Being (1.8K reputation)
Group: Forum Members
Posts: 28, Visits: 55
Any feedback ?
Pierre

Yury Averkiev (s-code)
Yury Averkiev (s-code)
Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)
Group: Administrators
Posts: 1.9K, Visits: 3.6K
I did tried once to figure out what escape characters sequence could be used to pass a command with spaces; I didn't succeed. I'll give it another try.

http://www.s-code.com/App_Themes/Default/images/blue_line.gif
Regards,
Yury Averkiev, SmartCode

Yury Averkiev (s-code)
Yury Averkiev (s-code)
Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)Supreme Being (207K reputation)
Group: Administrators
Posts: 1.9K, Visits: 3.6K
Hi Pierre,
I've tested this again on the v1804.2 build and a command with spaces appear to work just fine. We had made quite a few changes to the remote exec in the 1801 build. I guess that took care of the problem with the spaces. 
Here is an output from a REG QUERY command.

------------------------------------------------------------
Computer address: xxxx
------------------------------------------------------------
  Executing remote command. Please wait...

COMMAND OUTPUT BEGIN----------------------------------------

HKEY_LOCAL_MACHINE\SOFTWARE\SmartCode Solutions\VNC Manager
  setupngen  REG_SZ  2

COMMAND OUTPUT END------------------------------------------


http://www.s-code.com/App_Themes/Default/images/blue_line.gif
Regards,
Yury Averkiev, SmartCode

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Explore
Messages
Mentions
Search