Windows 7 Forums


Windows 7: \Business was unexpected at this time

07 Sep 2012   #1

7 64bit
 
 
\Business was unexpected at this time

i have a batch file that gets hung after searching a text file for a string. I run a psql query, output to txt file, and then search for string "(0 rows)" in the txt file. Somewhere between that 'findstr' statement and my 'if %errorlevel%' statement, my batch file fails with the error "\Business was unexpected at this time". i cannot figure out why. I even googled the phrase and got nothing. Anyone have an idea how to make this go away?
When i turn off '@echo off' and run bat from cmd, i see the error inbetween findsrt and if statments. However in the output it shows cd as the next statment, which in my code it definately isnt.
Code:
-blah
-blah
psql ------options and statement
findstr /C:"(0 rows)" "%clinic%"results2.txt > NUL 2>&1
if %errorlevel%==1 (
-blah
-blah
Code:
 
D:\Program Files (x86)\PostgreSQL\9.1\bin>findstr /C:"(0 rows)" results2.txt  1>NUL 2>&1
\Business was unexpected at this time.
D:\Program Files (x86)\PostgreSQL\9.1\bin>cd c:\Program Files (x86)\Business Objects\Common\3.5\bin\NOTES\;c:\Program Files (x86)\Business Objects\Common\3.5\bin\NOTES\DATA\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;d:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;d:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;d:\Program Files\Microsoft SQL Server\100\Tools\Binn\;d:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\
D:\Program Files (x86)\PostgreSQL\9.1\bin>


My System SpecsSystem Spec

Reply

 \Business was unexpected at this time problems?



Thread Tools



Similar help and support threads for: \Business was unexpected at this time
Thread Forum
new Business need help Network & Sharing
Solved "Unexpected Shutdown" every time computer sleeps or hibernates BSOD Help and Support
Run-time error 50003: Unexpected Error Installation & Setup
Copy non-business contact info to new non-business contact? Microsoft Office


All times are GMT -5. The time now is 06:24 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32