0

I'm running into an issue where I need to be able to change the target directory path that my IIS 5.0 virtual directory is pointing to from within a Post-Build block in Visual Studio 2008.

If you're not familiar with Post-Build events they basically just take batch commands. So if you know of a batch command for IIS 5.0 in XP Pro that can change the target directory that a virtual directory is pointing to that would really help.

Thanks in advance!

MPelletier
  • 16,256
  • 15
  • 86
  • 137
Adam
  • 3,063
  • 5
  • 35
  • 49

1 Answers1

1

Can I automate creating a .NET web application / virtual directory in IIS 5? to run VBScript in command line, use CScript.

Community
  • 1
  • 1
Sheng Jiang 蒋晟
  • 15,125
  • 2
  • 28
  • 46
  • Great! Do you know of a way to specify the language in the post-build event? I know I can type in batch commands without needing to specify anything. For vbscript do I need to put a header or something at the top? – Adam Nov 21 '09 at 01:11
  • no, just add the location of cscript to your path. By default it is under C:\Windows\System32. – Sheng Jiang 蒋晟 Nov 21 '09 at 04:30
  • This is perfect. Thanks! I ended up needing to make some changes so that it would just change the path of the virtual directory instead of creating it each time, but the changes were minor. Thanks! – Adam Nov 23 '09 at 18:14