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
Answers (2)
Please log in to answer
Posted by:
Hammer1790
11 years ago
Posted by:
SMal.tmcc
11 years ago
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
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 11 years ago