Page 1 of 1 1
Topic Options
#45176 - 2003-09-15 08:08 PM need to drop a file in a directory
Tracy Offline
Fresh Scripter

Registered: 2003-03-12
Posts: 9
We have a variety of OS's on our workstations.

I need to add in the script to run a certain .exe file on a users workstation only if they are an XP machine.

essentially this is how it should work:

if this is an XP workstation
then if (c:\..\some file) not exists
then do (install routine)
example:

if OS = Windows XP
if c:\program files\newtrips\tri.bat not exists
then installtripsxp.exe

Can anyone help me?

I'm using Kixtart 95, version 3.63

Top
#45177 - 2003-09-15 08:12 PM Re: need to drop a file in a directory
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
if @dos='5.1' and @inwin='1'
if exist(somefile.exe)=0
shell "install.exe"
endif
endif

[ 15. September 2003, 20:13: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask

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.049 seconds in which 0.024 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