thalam
11-02-2005, 01:47 PM
Hi there,
I am new to windows scripting and having some difficulty finding the right commands and concepts.
I am trying to write a script that will basically search a defined hard drive for a specific file, once it finds the file its going to move the entire dir (folder) into a specified location.
I have been looking for the search and move command in scripting for a few days, yet I haven't found it. Or I have found it and I just don't know it yet.
I got this code:
Dim fso
set fso=createobject("scripting.filesystemobject")
fso.MoveFolder "source", "destination"
set fso=nothing
it was in another post here. But I tried this, and it didn't work.
Can someone please help me. Thanks a lot!!<P ID="edit"><FONT class="small">Edited by thalam on 11/02/05 14:02.</FONT></P>
I am new to windows scripting and having some difficulty finding the right commands and concepts.
I am trying to write a script that will basically search a defined hard drive for a specific file, once it finds the file its going to move the entire dir (folder) into a specified location.
I have been looking for the search and move command in scripting for a few days, yet I haven't found it. Or I have found it and I just don't know it yet.
I got this code:
Dim fso
set fso=createobject("scripting.filesystemobject")
fso.MoveFolder "source", "destination"
set fso=nothing
it was in another post here. But I tried this, and it didn't work.
Can someone please help me. Thanks a lot!!<P ID="edit"><FONT class="small">Edited by thalam on 11/02/05 14:02.</FONT></P>