/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Run A Simple Batch Script failure

01/23/2015 1457 views
We are trying to get a simple batch script to run via KACE and have issues.  It runs locally without issue.  This is the script:

move "c:\logstash-cbnode\deflate\deflatriots.txt" "c:\logstash-cbnode\deflate\patriots.txt"

We have it checked to run as local system.  The script name is a *.bat form.  We are choosing the Windows OS.  Any idea in what we did wrong here?
4 Comments   [ + ] Show comments

Comments

  • Forgive me but how do you move one .txt file into another .txt file?
  • That is the command they are using. It does appear to work properly in a command prompt.
    • have you tried ren (rename) instead of move. ren "c:\logstash-cbnode\deflate\deflatriots.txt" patriots.txt
  • I agree with the this comment above. The Linux/Unix command, mv, are used to rename files but the command, move, does not do the same thing in Windows.
  • That is beside the point guys. This is an example that works fine in a DOS prompt. If anyone has any insight on why KACE can't run a batch file. I would appreciate it. As I stated, the command works fine locally in a command shell.
  • This content is currently hidden from public view.
    Reason: Removed by member request For more information, visit our FAQ's.

Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ