Hi, You can try escaping or store the file names in register and pass register through loop to run your executable files.
//Vinoth On Fri 20. Aug 2021 at 17:30, [email protected] <[email protected]> wrote: > I'm trying to run an exe with a space in the filename using the Win > Command module. > > For example 'filenames with spaces.exe' > > I have other playbooks that use win command to run exe files, but those > files don't have spaces in the filename, but this isn't an option for this > particular scenario unfortunately. > > I've tried a bunch of things (single quotes, double quotes, single and > double quotes, double double quotes, etc.) but I just keep getting an error. > > Wondering if anyone else has run into this problem and if so, how it was > resolved. > > Thanks in advance! > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/0783e170-1f85-468b-8cb7-a932f9851ffdn%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/0783e170-1f85-468b-8cb7-a932f9851ffdn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ%2BRxtShtQnZ%2B8iKbfoB0Ny3S9%3DJmjsWMZLoq_DmxnaisKq3fw%40mail.gmail.com.
