I have a short one line text file which includes double quotes and a
digit, e.g.
"1", or "0"
How do I get the digit or remove the quotes?
Thanks.
::----- START -----
For /f "tokens=*" %%a In (PathTo\file.txt) Do @Echo/%%~a
::------ END ------
you should , next time, try and start to write some code before
posting.
here's a vbscript
Set objFS = CreateObject("Scripting.FileSystemObject")
WScript.Echo Replace(objFS.OpenTextFile("c:\test
\file.txt").ReadAll,"""","")
are you sure it works?
It works perfectly on one XP sp3 box while I received "%%a was
unexpected at this time" on another XP sp3. Odd. thks, what could
cause that?
34} How can I remove the quote characters from a line?
http://www.netikka.net/tsneti/info/tscmd034.htm
http://www.netikka.net/tsneti/info/tscmd152.htm#Chr
All the best, Timo
--
Prof. Timo Salmi mailto:t...@uwasa.fi ftp & http://garbo.uwasa.fi/
Hpage: http://www.uwasa.fi/laskentatoimi/english/personnel/salmitimo/
Department of Accounting and Finance, University of Vaasa, Finland
Useful CMD script tricks http://www.netikka.net/tsneti/info/tscmd.htm
Thank you for helping me to resolve the problem.
- Larry
Not in the plans at the moment and probably not in the near future.
But in case someone does not know what that is about, see e.g.
http://www.microsoft.com/windowsserver2008/en/us/powershell-faq.aspx