The command-line length must be less than 256 characters.
It is possible to use more than 256 characters by calling the "wide
version of CreateFile" by prefixing "\\?\" to the path. The "\\?\"
tells the function to turn off path parsing. This enables you to use paths that
are 32,000 characters long. You must use fully-qualified paths with this
technique. The "\\?\" is ignored as part of the path. I.E.,
"\\?\C:\My Documents\test.doc" is processed as "C:\My Documents\test.doc".
Note that under Windows XP this is done automatically when setting
Environment variables like PATH using the Control Panel System Icon (Advanced
Tab then Environmant Variables button).
--
Carey Frisch
Microsoft MVP
Windows XP - Shell/User
Microsoft Newsgroups
Be Smart! Protect Your PC!
http://www.microsoft.com/athome/security/protect/default.mspx
------------------------------------------------------------------------------
"hack_tick" wrote:
| hi there
| I need to pass a huge argument to the command line(cmd) it giving me input
| too long, any suggestions what else can i do ?