title: How to run a 7zip batch without copying the batch file to the 7zip folder in c
body: <p>I have created a batch file to zip my backups, but the batch files works only if I copy the batch file to the 7zip.exe folder on c drive; otherwise it doesn't work . How do I run my batch file from any location?</p>
  
  <p>Here is my command:</p>
  
  <p>7z a -mhe -p1234 -t7z "D:\Batch test\2\%datetimef%.7z" "D:\Batch test\1*.*" -mx0</p>