Page 1 of 1 1
Topic Options
#201836 - 2011-04-01 04:59 PM Running CMD command in Kix
Alucard_Kakashi Offline
Fresh Scripter

Registered: 2009-02-05
Posts: 37
Loc: USA
Is there a way to use "netsh" command within kixtart (during logging in)? looking every where and i can't seem to find anything.

thanks

Top
#201837 - 2011-04-01 05:07 PM Re: Running CMD command in Kix [Re: Alucard_Kakashi]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4572
Loc: USA
What are you trying to accomplish? There may be better and easier ways than netsh.
_________________________
(... better days ahead)

Top
#201838 - 2011-04-01 05:16 PM Re: Running CMD command in Kix [Re: Allen]
Alucard_Kakashi Offline
Fresh Scripter

Registered: 2009-02-05
Posts: 37
Loc: USA
trying to push out a wireless profile to laptop users. i have a bat file we run manually, but we want to have the profile get installed during login time.

the command in the bat is this:

netsh wlan add profile filename="%PROFILE%" user=current

Top
#201840 - 2011-04-01 05:58 PM Re: Running CMD command in Kix [Re: Alucard_Kakashi]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
check manual for run or shell commands.
_________________________
!

download KiXnet

Top
#201841 - 2011-04-01 06:19 PM Re: Running CMD command in Kix [Re: Lonkero]
Alucard_Kakashi Offline
Fresh Scripter

Registered: 2009-02-05
Posts: 37
Loc: USA
so i would probably run something like this:

SHELL "C:\WINNT\SYSTEM32\CMD netsh wlan add profile filename="%PROFILE%" user=current"

within the kix script???

Top
#201842 - 2011-04-01 06:30 PM Re: Running CMD command in Kix [Re: Alucard_Kakashi]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Try something like this...

 Code:
SHELL 'netsh wlan add profile filename="%PROFILE%" user=current'

Top
#201843 - 2011-04-01 07:24 PM Re: Running CMD command in Kix [Re: ShaneEP]
Alucard_Kakashi Offline
Fresh Scripter

Registered: 2009-02-05
Posts: 37
Loc: USA
works prefect

SHELL 'netsh wlan add profile filename="@Scriptdir\Wireles.xml" user=current'

thank you.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1636 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.059 seconds in which 0.029 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org