First, I just decided (actually, a project decided for me) to dive into WSH and VBScript yesterday. So I don't know anything -- especially where or what to search for regarding my questions.
Here's what I'm trying to accomplish:
Currently, I have a .bat file that unzips some archives and puts some folders where I need them to go. That's great. (I've love to move that into a more "windows-y" script in the future.)
My problem is this: I want to create a script that does the following: Displays the BrowseForFolder dialog (w/o the New Folder button) and lets the user choose where to ultimately create a new folder (which I intend to do through script and allow the user to give the folder a name).
That almost works -- through a little searching here, I discovered the magic of objFolder.Items.Item.Path. Which words great, but throws an error when I select "Desktop" from the BFF dialog.
Is there any way around that? It's not outside the realm of possibilities for a user to want to create a folder on his desktop...
It's probably something ridiculousely obvious, but I'd greatly appreciate any help!!!
Here's what I'm trying to accomplish:
Currently, I have a .bat file that unzips some archives and puts some folders where I need them to go. That's great. (I've love to move that into a more "windows-y" script in the future.)
My problem is this: I want to create a script that does the following: Displays the BrowseForFolder dialog (w/o the New Folder button) and lets the user choose where to ultimately create a new folder (which I intend to do through script and allow the user to give the folder a name).
That almost works -- through a little searching here, I discovered the magic of objFolder.Items.Item.Path. Which words great, but throws an error when I select "Desktop" from the BFF dialog.
Is there any way around that? It's not outside the realm of possibilities for a user to want to create a folder on his desktop...
It's probably something ridiculousely obvious, but I'd greatly appreciate any help!!!