Jump to content
Sign in to follow this  
Skorn

How to figure out what partition a file/folder exists on

Recommended Posts

Skorn

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

Share this post


Link to post
Share on other sites
PsaltyDS

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)

:rolleyes:


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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×