[GLLUG] c++ help sanitizing
Sean O'Malley
picasso at madflower.com
Thu Sep 18 18:38:10 EDT 2008
This is probably offtopic but..
Is there a library in c++ that will sanitize a string for use with an
system()/exec() call to the windows command prompt so it can be passed as
a string without being interpreted by the command shell thing. Im not
wishing to reinvent the wheel with this.
ie
where string = \"^"&&!|>2aA
./mybatfile.bat "%string%"
Fails miserably.
Sean
More information about the linux-user
mailing list