Re: How to Get MachineName at Compile Time?
- From: samueltilden@xxxxxxxxx
- Date: Tue, 23 Oct 2007 07:17:10 -0700
Thanks, I know how to do some of what you write, except:
#2. How do I " Set the file to compile as an embedded resource?"
#3. How do I "Read the contents of the file out of the manifest
resources?"
#4. I now have a pre-build step that says "hostname > MachineName.txt"
but it puts the answer in {project}/bin/Debug directory. Should I
have the pre-build step say "hostname > ..\..\MachineName.txt"? or
some other location. I guess question #4 is related to #3.
Thanks
.
- Follow-Ups:
- Re: How to Get MachineName at Compile Time?
- From: ssamuel
- Re: How to Get MachineName at Compile Time?
- References:
- How to Get MachineName at Compile Time?
- From: samueltilden
- Re: How to Get MachineName at Compile Time?
- From: ssamuel
- How to Get MachineName at Compile Time?
- Prev by Date: Re: PInvoke Marshalling....
- Next by Date: Re: How to Get MachineName at Compile Time?
- Previous by thread: Re: How to Get MachineName at Compile Time?
- Next by thread: Re: How to Get MachineName at Compile Time?
- Index(es):
Relevant Pages
|