Kaseya Community

Copy file to hidden directory

  • I am by no means a batch file or script expert. But I am managing to work things out, mainly thanks to the Kaseya script function. I am trying to copy a file from a temp directory which I create on the root of the C drive for all my clients. It is called TSITEMP . I copy all my batch files or exe's here before I deploy. I amtrying to use the following, and any help would be appreciated.

    copyc:\TSITEMP\clamwin.conf%userprofile%\Application Data\.clamwin

    The error I get is :The syntax of the command is incorrect.

    I have also tried Xcopy and move with the same results.



    Thanks.






    Legacy Forum Name: Copy file to hidden directory,
    Legacy Posted By Username: pobrien
  • Chances are %userprofile% has spaces in it (e.g. documents and settings?). Try using quotes

    -Ed


    Legacy Forum Name: Script Discussion,
    Legacy Posted By Username: bellcpa
  • The quotes worked thank you very much.



    Phil


    Legacy Forum Name: Script Discussion,
    Legacy Posted By Username: pobrien