Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel: Output File Has Unwanted Quotes 1

Status
Not open for further replies.

GGleason

Technical User
Mar 22, 2001
321
US
I have a routine that is writing to a batch file that will be called later by the program. The problem is that the batch file has unwanted quotes. If I look at the string to be output in the immediate window it is exactly how I want it. However, when the output is to a file, I get additional quotes.

Immediate window: dir "K:\Docs Library\" /b /s /a:d > C:\Temp\ABC.txt
Output file: "dir ""K:\Docs Library\"" /b /s /a:d > C:\Temp\ABC.txt"

Is there a way to get this to look like I want it to in the output file?

tia,
GGleason
 
Use Print # instead of Write #

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
It was that easy!

Have a star and thank you.

GGleason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top