"PDFrastafarian refused to output to the requested file and I had to remove the following section to force it to work:"
did it work without those lines? The point of that code is to test writing to the output file and reading back. If the script can't do it, it assumes that lrs2lrf won't be able to write to the output file either. Possible reasons are an invalid filename, the file is open somewhere, or you don't have correct ntfs permissions (i'll put that in the error message). Another reason, of course, is that the code's broken, and if the output lrf gets created just fine then obviously that's the problem. It's pretty simple code, though.
Hmm... what happens when you go to start>run and enter
cmd /k more
(should be a black screen with a blinking underscore)
or how about
cmd /k FOR /F %A in ('more "C:\boot.ini"') DO @ECHO %A
(should be a few lines from your boot.ini file)
and, for that matter,
cmd /k echo __test__ > c:\test.txt & more c:\test.txt
(should read __test__ at the very top)
Thanks a lot for your help! p.s., what's your OS? I'm pretty sure only win2k and up will work properly.
EDIT: if you're calling the script manually, remember you have to put filenames with spaces inside "". (e.g. "c:\documents and settings\")
Last edited by alex_d; 12-19-2006 at 03:56 AM.
|