ZenCoder Posted July 4, 2006 Share Posted July 4, 2006 I just started working on creating unattended install scripts and most of my efforts has been toward the learning of AutoIt 3.11 for those programs that do not feature the appropriate switches.So I am using WPI, but haven't had much time to experiment with it. The only problem I am having is that it seems to not like folders with spaces in them.If there is a way arround this please let me know. Link to comment Share on other sites More sharing options...
oneless Posted July 4, 2006 Share Posted July 4, 2006 Wellcome to WPI forum !both , WPI and autoIT are very happy with long names with spaces in them.can you be more explicit , or maybe can do an example ? Link to comment Share on other sites More sharing options...
sadicq Posted July 4, 2006 Share Posted July 4, 2006 (edited) are you using double quotes when reffering to them?cd Documents and settings won't work, whilecd "Documents and settings" will work.Every string that contains spaces must be enclosed in double quotes ... Also take a look at the quotes system in autoit. It has something special ...Good examples:_RunDos('rd "blah blah"')_RunDos("rd ""blah blah""")Edit: about the variables in WPI: if tou use its integhrated editor you simple put double quotes in the command.If you edit the config.js directly (with notepad for example), don't forget to escape your "s with a backslash, like rd \"blah\". Edited July 4, 2006 by sadicq Link to comment Share on other sites More sharing options...
ZenCoder Posted July 8, 2006 Author Share Posted July 8, 2006 Thanks, you are right WPI has zero problems with spaces or any of the characters I tried to use.I must have inadvertently fixed my real problem when I tried removing spaces and special characters from the file and foldernames.Most of my effort has been directed at learning AutoIt so I can automate applications which don't have silent install switches, so I just monkeyed with WPI for a few minutes to create a menu for the 25 apps I have automated so far. Now I realize that all the work renaming the files and folders was wasted! Truth is WPI is working out so well I probably won't spend any time studying it. Link to comment Share on other sites More sharing options...
mobilelatham Posted July 15, 2006 Share Posted July 15, 2006 or you can use this format to accept spaces%CDROM%\DOCUME~1\ADMINI~1\LOCALS~1\ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now