Skorn Posted June 15, 2007 Posted June 15, 2007 Hey all, Basically what the topic says. I've been working on an oracle10g installation script and it's almost done, except sometimes we install it on the C: partition and sometimes on D:, so instead of having 2 seperate scripts for configuring oracle from C and D I'm looking for some method of finding out which drive it's on. Does au3 have something similar to this pseudo-code? I searched the help file but came up empty. Thanks if exists("C:\oracle") then [...proceed with code for C Drive] else [...proceed with code for D Drive] endif
Das Ami Posted June 15, 2007 Posted June 15, 2007 (edited) If FileExists ("path") ;do something ElseIf FileExists ("path") ;do something else EndIf Edited June 15, 2007 by Das Ami
PsaltyDS Posted June 15, 2007 Posted June 15, 2007 If FileExists ("path") ;do something ElseIf FileExists ("path") ;do something else EndIfoÝ÷ Ûú®¢×¢··¶£ºËn±ëay'+C¹rº-¢IèÃ^ëazÇ+b²»§)à~º&jëh×6MsgBox(64, "Location", "Script is running in: " & @ScriptDir) Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now