Managing Environment Variables with the SetX Utility
The SetX utility performs essentially the same tasks as the Set command described in the ???Managing
Environment Variables with the Set Command??? section of the chapter. However, it offers considerably
more flexibility because you can use SetX over a network to interact with variables on other
machines. In addition, it offers considerable flexibility in setting variables, such as letting you
choose between the current user and the system as a whole. Rather than repeat all of the common
information for using SetX, please refer to the Set command as a starting point. This command uses
the following syntax:
SETX [/S system [/U [domain\]user [/P [password]]]] var value [/M]
SETX [/S system [/U [domain\]user [/P [password]]]] var /K regpath [/M]
SETX [/S system [/U [domain\]user [/P [password]]]] /F file {var
{/A x,y | /R x,y string}[/M] | /X} [/D delimiters]
The following list describes each of the command line arguments.
/S system Specifies the remote system that you want to check. In most cases, you??™ll also need
to supply the /U and the /P command line switches when using this switch.
Pages:
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340