batch file

  • Thread starter Thread starter charles cashion
  • Start date Start date
C

charles cashion

Before a recent crash, I had a small batch file.
As best I can remember either

path=%path%;C:\vslick\win
or
path=$path;c:\vslick\win

Either this was in the c:\windows subdirectory
or it might have been in the start subdirectory.
Now neither works.
Tnx,
Charles
 
I am running Windows XP with SP2 and with AFAIK
all current updates. I allow automatic updates.

Before a recent crash, I had a small batch file.
As best I can remember either

path=%path%;C:\vslick\win
or
path=$path;c:\vslick\win

Either this was in the c:\windows subdirectory
or it might have been in the start subdirectory.
Now neither works.
Would somebody please tell me how to correct this?

Also, I thought I remembered that
c:\> echo $path
would return the current value of path.
Can somebody tell me if this is correct.

Does echo only work for admin?
Tnx,
Charles
 
charles said:
I am running Windows XP with SP2 and with AFAIK
all current updates. I allow automatic updates.

Before a recent crash, I had a small batch file.
As best I can remember either

path=%path%;C:\vslick\win
or
path=$path;c:\vslick\win

Either this was in the c:\windows subdirectory
or it might have been in the start subdirectory.
Now neither works.
Would somebody please tell me how to correct this?

Also, I thought I remembered that
c:\> echo $path
would return the current value of path.
Can somebody tell me if this is correct.

Does echo only work for admin?
Tnx,
Charles

I just couldn't let this one go.
The correct syntax is
c:\>path=%path%;C:\vslick\win
and
c:\>echo %path%
Thanks,
Charles
 
Also, I thought I remembered that
c:\> echo $path
would return the current value of path.
Can somebody tell me if this is correct.

Just type path and hit enter.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Regarding path...
I just open a command prompt and enter the word: path
....which returns the full path value.

FWIW

==========On Sun, 21 May 2006 10:33:24 -0500, charles cashion
 
charles said:
Before a recent crash, I had a small batch file.
As best I can remember either

path=%path%;C:\vslick\win
or
path=$path;c:\vslick\win

Either this was in the c:\windows subdirectory
or it might have been in the start subdirectory.
Now neither works.
Tnx,
Charles

I think the former is valid for windows.
run the batch file and you should be able to run EXEs or COMs -
executables - from that directory, whatever directory you're in.
experiment, try
path=c:\;c:\windows;c:\windows\system32;c:\vslick\win

in NT (so, XP too)
make sure you run this from cmd.exe not command.com,

I found it was !!!*unpredictable*!!! from command.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top