Hi,
I'm working on Windows 2003 Server SP2 X64 edition to create SharePoint
extentions.
After each rebuild, I have to recycle app pool that use the extention I've
build, that's why I wanted to add the following line in post build events :
"%windir%\system32\cscript.exe" "%windir%\system32\iisapp.vbs" /a "My SP app
pool" /r
This command line is working perfectly when I open it in a cmd window, but
in VS, I get an error (in the output pane):
"Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Input Error: Can not find script file "c:\windows\system32\iisapp.vbs".
What is wrong ?
Thanks,
Steve
Andrew McDonald - 31 May 2007 22:18 GMT
> Hi,
>
[quoted text clipped - 17 lines]
>
> What is wrong ?
I've no idea about the Windows Script Host, but perhaps it's interpreting
the quote marks as part of the filename. What happens if you remove them
from %windir%\system32\iisapp.vbs?
--
Andy
Steve B. - 01 Jun 2007 08:16 GMT
I tried but that does not change...
Steve
>> Hi,
>>
[quoted text clipped - 25 lines]
> --
> Andy
Ashot Geodakov - 02 Jun 2007 03:14 GMT
Perhaps Visual Studio can not translate the environment variables that you
specify between %%s.
Try instead just hardcode these paths like:
C:\Windows\system32\cscript.exe C:\Windows\System32\system32\iisapp.vbs /a
"My SP app pool" /r
> Hi,
>
[quoted text clipped - 21 lines]
>
> Steve
Steve B. - 04 Jun 2007 07:52 GMT
As you can see in my first post, the error message says that the file
c:\windows\system32\iisapp.vbs cannot be found.
So I suppose the env variable are correctly expanded.
I also tried with the full hardcoded path (in case my hypothesis was not
correct), but I got the same error.
Thanks,
Steve
> Perhaps Visual Studio can not translate the environment variables that you
> specify between %%s.
[quoted text clipped - 29 lines]
>>
>> Steve
Ashot Geodakov - 04 Jun 2007 08:05 GMT
Sorry I misread your first post.
As an option, could you create a .BAT file with that command and call that
.BAT from VS?
> As you can see in my first post, the error message says that the file
> c:\windows\system32\iisapp.vbs cannot be found.
[quoted text clipped - 39 lines]
>>>
>>> Steve
Steve B. - 05 Jun 2007 08:53 GMT
I also tried, with the same result...
> Sorry I misread your first post.
>
[quoted text clipped - 44 lines]
>>>>
>>>> Steve