batch files keep looping

w^rl0rdw^rl0rd Member Posts: 329
I have created several different batch files with commands that run fine when entered from the command prompt directly.

For example:

logman create counter test_log -c "\memory\available mbytes"



It does what it should, but when I paste it into a batch file and execute it. It does not stop processing. It looks like the command just keeps getting typed out but never stops. I have tried using a pause statement and this happens with other scripts as well.

Any ideas?

Comments

  • blargoeblargoe Member Posts: 4,174 ■■■■■■■■■□
    We'd need the rest of the script
    IT guy since 12/00

    Recent: 11/2019 - RHCSA (RHEL 7); 2/2019 - Updated VCP to 6.5 (just a few days before VMware discontinued the re-cert policy...)
    Working on: RHCE/Ansible
    Future: Probably continued Red Hat Immersion, Possibly VCAP Design, or maybe a completely different path. Depends on job demands...
  • SmallguySmallguy Member Posts: 597
    do you have an exit statement at the end of the script??
Sign In or Register to comment.