Jump to content

[Solved] Help with running command with spaces


alfa
 Share

Recommended Posts

Hello,

I am trying to run this

reg export "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\profiles" c:\profiles.reg

as

RunWait(@ComSpec & " /c " & "reg export HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\profiles' c:\profiles.reg","")

The first code is working in the command line. But because of the spaces i have to take the whole command between "". But in autoit it doesnt seem to recognice that way.

Since the thing i want to export is not a single key i cant use regread also.

Thanks in advance.

Edited by alfa
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...