/build/static/layout/Breadcrumb_cap_w.png

KACE Product Support Question


Problem with scripting replace quotes

09/05/2013 3270 views

I have v5.5 on my K1000.

I have a script with a run a batch file step that deletes a specific file.  The file path contains spaces so it needs quotation marks around the path.  When I run the script it does nothing.  When I edit the script the double qoutes " have been replaced with "

del "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\IBM System i Access for Windows\Emulator\Create Green Screen Sessions.txt"

becomes

del "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\IBM System i Access for Windows\Emulator\Create Green Screen Sessions.txt"

Has anyone else experienced this?

2 Comments   [ + ] Show comments

Comments

  • I have the same issue using IE, but it works fine with Chrome or Firefox.
  • I just upgraded to 5.5.90545 and now all my scripts have " instead of quotes.

    Any actual solution for this? I have many scripts that are pretty basic batch files and it would be overkill to have to create VB scripts or something to replace them.

    Is there a way to fix the current scripts I have? Is there a way to escape out special characters in scripts?

All Answers

0

As a workaround, you can edit the scripts using another browser other than IE. This seems to be isoloated only to this browser. I ran into the same issue and then I started using Firefox and it seemed to resolve it for me.

Answered 11/01/2013 by: Hammer1790
2nd Degree Black Belt

0

may be something simular to problem here:

http://www.itninja.com/question/5-5-agent-custom-inventory-rule

Answered 09/05/2013 by: SMal.tmcc
Red Belt

  • Thanks for the link. I tried using an escape sequence for the quotes, but that didn't help. I ended up just doing it with a VB script. I also put in a ticket as it looks to be a bug.
    • Submit a support ticket so it can be researched.
  • Doh! This is why my reboot and restart scripts have stopped running. I'm submitting a ticket as well...
 
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