Page 1 of 1 1
Topic Options
#10972 - 2001-07-27 09:16 PM Drive Mappings
Anonymous
Unregistered


Hello,

I would like to know if there's a way to display a message box on the screen without any command buttons for a certain length of time. Also is it possible to clean this code up any more? Thanks.

-Brian

code:

$home = ExpandEnvironmentVars("%HOMESHARE%")
$errcount = 0

USE H: /DEL
USE I: /DEL
USE K: /DEL
USE L: /DEL
USE M: /DEL
USE N: /DEL
USE Y: /DEL

messagebox('Mapping Network Drives...','Connecting Network Drives',64,2)

USE H: "\\server\engineering"
if (@ERROR > 0)
$errcount = $errcount + 1
endif


USE I: "\\server\services"
if (@ERROR > 0)
$errcount = $errcount + 1
endif


USE K: "\\server\admin"
if (@ERROR > 0)
$errcount = $errcount + 1
endif


USE L: "\\server\proj_pur"
if (@ERROR > 0)
$errcount = $errcount + 1
endif


USE M: "\\server\sales"
if (@ERROR > 0)
$errcount = $errcount + 1
endif


USE N: "\\server\universal"
if (@ERROR > 0)
$errcount = $errcount + 1
endif


USE Y: @HOMESHR
if (@ERROR > 0)
$errcount = $errcount + 1
endif


if ($errcount > 0)
messagebox('At least one network drive failed to connect.','Network Drive Failure',48)
endif



Top
#10973 - 2001-07-28 08:08 PM Re: Drive Mappings
pvds Offline
Hey THIS is FUN
*****

Registered: 2001-04-14
Posts: 201
Hello,

I use kixwin to open an explorer window. http://kix.isorg.net/kix_tools/
here is my used code,
RUN '%comspec% /c kixwin "\\server\netlogon\test.html" "" "dialogWidth:800px;dialogHeight:600px;edge:raised;help:no;scroll:no;status:no;unadorned:yes"'
with the run command the script continu loading you can replase it with the shell command then the script waits until the window is closed.
in the test.HTML I used a timer to close the window after 10 seconds this code is at work but when you need it mail me.

GR peter

Top
#10974 - 2001-10-23 07:48 AM Re: Drive Mappings
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

additional information about KixWinit:
- new name KixPop
- new release
You find it on the site:
http://kix.isorg.net/kix_tools/KixPop.zip
Greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

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
1 registered (Allen) and 33 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.179 seconds in which 0.123 seconds were spent on a total of 12 queries. Zlib compression enabled.

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