Announcement

Collapse
No announcement yet.

Problems with a custom tool

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems with a custom tool

    I am having a problem with a custom tool that is simply supposed to rollout a reg key (the next command will run psexec and regedit remotely to apply the key.
    Here is the command:
    cmd /c & copy C:\temp\WLBS\NovellWLBS.reg \\%E%\c$\ & pause
    When I run it from a DOS prompt replacing %E% with a server name. I tried %S% as well, but that didn't help. The file never arrives at the target machine, rights would be the same between command prompt manual run and the Custom Tool. Any thoughts?

  • #2
    Re: Problems with a custom tool

    Remove the first & sign and change it to:

    cmd /c copy C:\temp\WLBS\NovellWLBS.reg \\%E%\c$\ & pause

    See what that does.

    Comment


    • #3
      Re: Problems with a custom tool

      That worked. Thanks for your help, so I don't need to chain the cmd for commands?

      Comment


      • #4
        Re: Problems with a custom tool

        Not right after the cmd /c the way you had it. That sets up the DOS environment to run the commands following it. You can then chain commands in that environment, like you have with the &pause.

        Comment

        Working...
        X