On Nov 18, 11:42 am, epanda <[email protected]> wrote: > While this command works on win cmd prompt, it fails from a batch : > > vim -c "source C:\Documents and Settings\user\Mes documents\util > \myScript.vim" -c "argdo call TangoTemplateNb1()" -c "exec 'saveas ' . > expand('%:p:h') . '\newFile.txt'" -c q exportSql.xml > > "Documents and Settings\user\Mes documents\util\exportSql.xml" [unix] > 112L, 7982C > ":p:h\newFile.txt" > Erreur détectée en traitant command line : > ":p:h\newFile.txt" E212: Impossible d'ouvrir le fichier pour y écrire >
% is a special character in batch files. To use an actual % character in a batch file, you generally have to use %% to escape it. http://www.robvanderwoude.com/escapechars.php Geoff --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
