Elec0 Posted August 5, 2009 Author Share Posted August 5, 2009 Is this command available with SadScript? Link to comment Share on other sites More sharing options...
emblem Posted August 5, 2009 Share Posted August 5, 2009 I don't know why you would want to use it. But:```Dim fsoDim folder Set fso = CreateObject("Scripting.FileSystemObject") folder = fso.GetParentFolderName(FolderObject)``` Link to comment Share on other sites More sharing options...
Elec0 Posted August 5, 2009 Author Share Posted August 5, 2009 What's the (FolderObject) mean? Link to comment Share on other sites More sharing options...
emblem Posted August 5, 2009 Share Posted August 5, 2009 If I remember correctly you need to pass a folder object to it.Although I might be wrong, didn't use FSO that much.If you look up the FSO on [MSDN](http://msdn.microsoft.com/en-us/library/6kxy1a51(VS.85).aspx), the usage in SadScript is exactly the same as the VBS examples. Link to comment Share on other sites More sharing options...
Elec0 Posted August 5, 2009 Author Share Posted August 5, 2009 What I'm attempting to do is this. I'm working on a remote server, and I don't have access to it, and don't know the full directory that I need so I can delete a folder. Link to comment Share on other sites More sharing options...
emblem Posted August 5, 2009 Share Posted August 5, 2009 Hmm. Due to the way the scripting engine is implemented, that function might return some weird values.So, I wouldn't rely on it. Link to comment Share on other sites More sharing options...
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