473,749 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How create batch file using Windows SDK Command Prompt?

Currently (manually), I 1) open a Windows SDK Command Prompt and 2) navigate
to a particular folder. Then I 3) type a command and press enter. The
command is irrelevant (WCF-related) but here it is FYI:

svcutil http://localhost/COWFeedyardService/Services/Pen.svc /out:Pen.vb
/config:App.conf ig /language:VB

All works fine, but I need to do this over a hundred times changing "Pen" to
the names of the other classes and re-executing.

QUESTION: How can I create a batch file that I can list all the lines in and
have it run them under the Windows SDK Command Prompt?

svcutil http://localhost/COWFeedyardService/Services/Pen.svc /out:Pen.vb
/config:App.conf ig /language:VB
svcutil http://localhost/COWFeedyardService/Services/Lot.svc /out:Lot.vb
/config:App.conf ig /language:VB
svcutil http://localhost/COWFeedyardService/Services/Animal.svc
/out:Animal.vb /config:App.conf ig /language:VB
etc...

Thanks,
Ron

Apr 10 '07 #1
4 4693
Ronald,

You don't need to have it run under the Windows SDK Command Prompt. Why
not just include the full path to svcutil? That's really all you need.
That, and you need to specify a full path for the out and config parameters
as well, but that's a simple task.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Ronald S. Cook" <rc***@westinis .comwrote in message
news:uD******** ******@TK2MSFTN GP05.phx.gbl...
Currently (manually), I 1) open a Windows SDK Command Prompt and 2)
navigate to a particular folder. Then I 3) type a command and press
enter. The command is irrelevant (WCF-related) but here it is FYI:

svcutil http://localhost/COWFeedyardService/Services/Pen.svc /out:Pen.vb
/config:App.conf ig /language:VB

All works fine, but I need to do this over a hundred times changing "Pen"
to the names of the other classes and re-executing.

QUESTION: How can I create a batch file that I can list all the lines in
and have it run them under the Windows SDK Command Prompt?

svcutil http://localhost/COWFeedyardService/Services/Pen.svc /out:Pen.vb
/config:App.conf ig /language:VB
svcutil http://localhost/COWFeedyardService/Services/Lot.svc /out:Lot.vb
/config:App.conf ig /language:VB
svcutil http://localhost/COWFeedyardService/Services/Animal.svc
/out:Animal.vb /config:App.conf ig /language:VB
etc...

Thanks,
Ron

Apr 10 '07 #2
"Ronald S. Cook" <rc***@westinis .comwrote in message
news:uD******** ******@TK2MSFTN GP05.phx.gbl...
Currently (manually), I 1) open a Windows SDK Command Prompt and 2)
navigate to a particular folder. Then I 3) type a command and press
enter. The command is irrelevant (WCF-related) but here it is FYI:

svcutil http://localhost/COWFeedyardService/Services/Pen.svc /out:Pen.vb
/config:App.conf ig /language:VB

All works fine, but I need to do this over a hundred times changing "Pen"
to the names of the other classes and re-executing.

QUESTION: How can I create a batch file that I can list all the lines in
and have it run them under the Windows SDK Command Prompt?
Call SDKVARS.BAT from your batch file.

You can right click the "Windows SDK Command Prompt" shortcut to see what
it's really doing, look at the target.


Apr 10 '07 #3
So would you guys create the batch file in Notepad or something? I keep
hearing about "PowerShell " but not sure how to work with that.

Thanks for any ideas.
"John Vottero" <JV******@mvpsi .comwrote in message
news:E2******** *************** ***********@mic rosoft.com...
"Ronald S. Cook" <rc***@westinis .comwrote in message
news:uD******** ******@TK2MSFTN GP05.phx.gbl...
>Currently (manually), I 1) open a Windows SDK Command Prompt and 2)
navigate to a particular folder. Then I 3) type a command and press
enter. The command is irrelevant (WCF-related) but here it is FYI:

svcutil http://localhost/COWFeedyardService/Services/Pen.svc /out:Pen.vb
/config:App.conf ig /language:VB

All works fine, but I need to do this over a hundred times changing "Pen"
to the names of the other classes and re-executing.

QUESTION: How can I create a batch file that I can list all the lines in
and have it run them under the Windows SDK Command Prompt?

Call SDKVARS.BAT from your batch file.

You can right click the "Windows SDK Command Prompt" shortcut to see what
it's really doing, look at the target.


Apr 10 '07 #4
"Ronald S. Cook" <rc***@westinis .comwrote in message
news:ev******** ******@TK2MSFTN GP03.phx.gbl...
So would you guys create the batch file in Notepad or something? I keep
hearing about "PowerShell " but not sure how to work with that.
PowerShell is MUCH better than batch scripts. It sounds like you're new to
batch scripts and PowerShell, if so, your time would be better spent
learning PowerShell.

You can use Notepad or any other text editor to create a PowerSell script.
You could also use one of these PowerShell specific editors:

http://www.powershellanalyzer.com

http://www.powershell.com

Apr 11 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
3503
by: Moosebumps | last post by:
So, after reading some messages about os.system, and looking at the popen stuff and trying it a bit, I still have not found a way to keep a command window open for several commands (on Windows 2000/XP), while seeing the normal output in a command window. All I want to do is do what a batch file does, but I want to actually have functions and associative arrays and all the other niceties of python. What's the deal with that? I thought...
2
2736
by: Herb Stevenson | last post by:
Hello all. I need to set up a batch file to work w/ the Visual Studio.NET 2003 command prompt. However, when I run the batch file it uses the standard command prompt. Is there a way to differentiate batch files between the two prompts? Also, where might I find information on the differences between the 2 prompts? Thanks, Herb
15
3334
by: Viviana Vc | last post by:
How can I programatically do the equivalent of the following: cacls "C:\Program Files\test" /T /G Everyone:f ? Thanks, Viv
14
3558
by: Mark C. | last post by:
I'm trying to call a batch file that I've built using the FileSystemObject and CreateObject("Wscript.Shell"), oShell.Run... in an asp script. Naturally, I can get the script to work from a command line but not from a browser. The page does not throw an error but the oShell.Run... portion of the script doesn't run. Any help would be appreciated. Thanks.
4
47538
by: Bill | last post by:
I need help closing a CMD window when it is executed from Access. 1) The batch file is called from Access. 2) Access closes, 3) the batch runs a copy of the access database (creating a backup) 4) Once the copy is complete, the batch file opens the Access database again 5) EXIT should close out the cmd window but it does not execute that line
6
11235
by: Charles Neitzel | last post by:
I'm trying to write a windows application in C# (Using Microsoft Visual C# 2005 Express) that is nothing more than a simple UI with buttons on it. The buttons do various things like running programs and executing registry entries. The majority of my buttons work however, I have come upon a problem. I need a few of the buttons to run DOS batch files, the batch files in turn run program installers (specifically windows update runtime .exe...
5
8202
by: anand4nk | last post by:
Hi, I am installing postgreSQL 8.2 using batch files in windows xp machine. I am installing postgres using postgresql-8.2.msi installer. Installation was successful. When i tried to run createdb command using the following command from another batch file "createdb -U dbname username"
14
12827
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, In my windows applicationm, i need to excute a batch file. this batch file throws some text and questions to the screen, i need to catch the standard Output, check if it's a question, in case it's a question, i want to popup a messageBox or something, and bring back to the batch file the result (Yes\No question). I know how to excute the batch file and get all the Standard output at the end, but i don't know who can i read it line by...
0
8997
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9389
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6801
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4709
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4881
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3320
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2218
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.