/build/static/layout/Breadcrumb_cap_w.png

Problem with scripting replace quotes

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
  • I have the same issue using IE, but it works fine with Chrome or Firefox. - jfields 11 years ago
  • 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? - jfindley 10 years ago

Answers (2)

Posted by: Hammer1790 11 years ago
2nd Degree Black Belt
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.

Posted by: SMal.tmcc 11 years ago
Red Belt
0

may be something simular to problem here:

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


Comments:
  • 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. - Thomas.Babcock 11 years ago
    • Submit a support ticket so it can be researched. - jknox 11 years ago
  • Doh! This is why my reboot and restart scripts have stopped running. I'm submitting a ticket as well... - jegolf 11 years ago

Don't be a Stranger!

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

Sign up! or login

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