Re: CommandLine Path
- From: "RicksPlace" <ofbgmail@xxxxxxxxx>
- To: <programmingblind@xxxxxxxxxxxxx>
- Date: Tue, 15 Mar 2011 16:34:44 -0400
Hi Jim: I have avoided any windows programming but it looks like I can't do
that anymore. OK, so I am creating a Windoweyes script in VBScript and want to
access the .net environment. This means com. OK, now I created a dll with
appropriate settings in VB.net 2008 express and tested the dll from another
vb.net 2008 express project and it works. Now I have to register the dll using
regasm.exe. To use regasm I need to give the Assembly a strong name first
which is where the sn.exe comes in. Now, I found the exe modules in the
appropriate file paths which are a little long and have spaces. I tried doing
run from the start menu and cmd to open a command window then tried to run
sn.exe but have to change to the proper directory. I tried copying the
directory, in quotes" from a txt file into the command window following the cd
command (change directory) and even tried putting the entire file path
including the executable in the path but I can't seem to paste into the command
line thingy. It would be better to just have a script or batch file to register
the dll and put the Assembly in the gac so I don't have to mess with the
command window. I don't like how it works with windoweyes anyway.
Well, that's it. I am hoping someone has a script or batch file that executes
something like this so I don't have to fight that cmd window every time I make
a change to the dll during testing.
I saw a short blurb on using environment variables in a command line but have
not read up on that yet - another new technical I am hoping to avoid for now,
phew! So that's my story Jim. If I can't get a batch file or script I might try
using an environment variable but I would like to keep the entire process of
developing and testing the com object compartmentalized in program code of some
sort if possible. That might also give me a running start on deploying the com
object.
Rick USA
----- Original Message -----
From: Homme, James
To: programmingblind@xxxxxxxxxxxxx
Sent: Tuesday, March 15, 2011 11:42 AM
Subject: RE: CommandLine Path
Hi Rick,
If you want to just use the path environment variable, it is %path%. If you
want to add something after it, you would just put a semicolon, then the
folders you want to use. What are you trying to do?
Thanks.
Jim
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of RicksPlace
Sent: Tuesday, March 15, 2011 10:51 AM
To: programmingblind@xxxxxxxxxxxxx
Subject: CommandLine Path
Hi: In Windows XP I am trying to execute sn.exe which is in a long file path
with spaces. I tried typing cd and then pasting the path enclosed in quotes
into the command window but the paste does not seem to be working - nothing is
being pasted. Is there some way to navigate around the command structure
without having to type everything all the time?
I am thinking of copy and paste, a batch file or a script or anything that I
can use over and over without typing my fingers to the bone.
I don't know whether to try building a batch file or script or whatever to
just execute this program and others.
If you have one, a sample would help allot so I can research the technicals
you used.
Rick USA
------------------------------------------------------------------------------
This e-mail and any attachments to it are confidential and are intended
solely for use of the individual or entity to whom they are addressed. If you
have received this e-mail in error, please notify the sender immediately and
then delete it. If you are not the intended recipient, you must not keep, use,
disclose, copy or distribute this e-mail without the author's prior permission.
The views expressed in this e-mail message do not necessarily represent the
views of Highmark Inc., its subsidiaries, or affiliates.
Other related posts: