Bat file space in filename




















By Ross Killen. We get this question all the time from third party developers who work with us. It's a must implement in any stable batch file.

The problem: We want to loop through a file where either the name or path has a space in it. Why is this a problem? Generally in production environments though, we don't want end users to have to open up command prompts and type in test. Hello, I would like to ask about using batch file to open a series of PDF files.

Saturday, July 16, PM. This can be beneficial to other community members reading the thread. Wednesday, July 20, AM. Sunday, July 17, AM. Mr X, This doesn't work on my system. Is there any other solution? Tuesday, July 19, AM. Magon, This worked. Friday, July 22, AM. The following code is necessary to write the second argument safely always without " into file tmp. For example running a replace on both batch files searching for tmp.

The temporary file should be also deleted finally before reaching an exit point for batch file execution. How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 2 years, 6 months ago. Active 8 months ago. Viewed 15k times. EXE tmp. ArgumentException: Illegal characters in path. StatusReady at ProdianceExcelCompare. Init at ProdianceExcelCompare.



0コメント

  • 1000 / 1000