Thought I'd try here, VBScript AD Issue
Hi,
Here's what I need to do, I need to move a folder from the local machine to a folder in a home drive, which may or may not exist depending on the user I deploy it to. The requirement is to move the folder from INSTALLDIR which is local to the machine to a folder on a O:\Drive which is the users homedrive. It's got to be the fixed drive letter as this is the way our system is designed here.
Below is my sample script, It doesn't work because I get a "Permission denied" error, Line 4, Char 4. I have rights to my homedrive obviously and can carry out this task by way of a manual move.
Why does I get this error if I try and move it via a VBScript? Anybody got any ideas?
Sample Script
dim filesys
set filesys=CreateObject("Scripting.FileSystemObject")
If filesys.FolderExists("c:\program files\factset\user data") Then
filesys.MoveFolder "c:\program files\factset\user data", "o:\config\factset\user data"
End If
Here's what I need to do, I need to move a folder from the local machine to a folder in a home drive, which may or may not exist depending on the user I deploy it to. The requirement is to move the folder from INSTALLDIR which is local to the machine to a folder on a O:\Drive which is the users homedrive. It's got to be the fixed drive letter as this is the way our system is designed here.
Below is my sample script, It doesn't work because I get a "Permission denied" error, Line 4, Char 4. I have rights to my homedrive obviously and can carry out this task by way of a manual move.
Why does I get this error if I try and move it via a VBScript? Anybody got any ideas?
Sample Script
dim filesys
set filesys=CreateObject("Scripting.FileSystemObject")
If filesys.FolderExists("c:\program files\factset\user data") Then
filesys.MoveFolder "c:\program files\factset\user data", "o:\config\factset\user data"
End If
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
Jsaylor
14 years ago
Posted by:
hungerfordj
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.