How can I run this as a command file in PDQ deploy?

Comments

3 comments

  • SelfMan

    Put the command in to a batch file and deploy that.

    I am not sure if PDQ Deploy can handle variable expansion.

    0
    Comment actions Permalink
  • Shane Corellian

    You nailed it, Bruce. You need to escape the special characters (in this case %) like you would in a batch file. PDQ Deploy  (2.3 and later) processes Command Steps into batch files. Try this command:

    for /d  %%d  in ("c:\users\*") do rd /s/q "%%d\AppData\LocalLow\Sun\Java\Deployment\cache"

    There are a few gotchas running batch files vs. commands in cmd.exe. Here is a great cheat sheet for escaping special characters in batch files.

     

    0
    Comment actions Permalink
  • Bruce Garlock

    Nice!  It worked.  Many thanks,

    Bruce

     

    0
    Comment actions Permalink

Please sign in to leave a comment.