Search the Community
Showing results for tags 'batchfile'.
-
While trying to write an extension for firefox 3 for Win98SE it's needed for me to include a certain *.bat-file (or directly execute command.com). I'm running into problems with long parameters/arguments to pass. I will explain the problem with a more simple example: I have a *.bat-file C:\notepadtest.bat with following content: c:\windows\notepad "%1" Furthermore I have a *.txt-file C:\testfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfile\testfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfile\test.txt with content test (the content of the *.txt-file plays no role). If I now try to execute C:\notepadtest.bat C:\testfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfile\testfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfile\test.txt, so it will not work! . (It will be shown a stupid error message instead of executing notepadtest.bat.) It has definitely to do with the (very) long parameter C:\testfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfile\testfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfiletestfile\test.txt. With shorter parameters the notepadtest.bat works correctly. But long parameters (concretely: URLs) would later be needed for the firefox extension. Is there any known way to pass long parameters into a *.bat-file? (Or alternatively to pass long parameters directly to c:\windows\command.com, using the /k commandline option?)