Jim Metcalf
asked on
copy and move files using either vbscript or powershell or bat if need be
I have a workstation that runs an app connected to some mdb files. I need to create a script to copy and paste these files from the workstation to a network share. Windows 7 backup is already being utilized for imaging so I can't use windows backup to backup and move the files to the share.
I want to create a script that copies and moves the files to a network share on a schedule.
I would like to use powershell but my knowledge is limited
vbscript and .bat would be fine.
the data is store on the local machine in a directory that is not a shared directory. can I grab the files using some sortof $ share designator and then drill into the folder that contains the data?
example. no shares on the workstation. the data is stored in lets say. c:\diagram\new
can I run the script on my workstation (not the in place workstation with the data) and move the files to the network share?
I want to create a script that copies and moves the files to a network share on a schedule.
I would like to use powershell but my knowledge is limited
vbscript and .bat would be fine.
the data is store on the local machine in a directory that is not a shared directory. can I grab the files using some sortof $ share designator and then drill into the folder that contains the data?
example. no shares on the workstation. the data is stored in lets say. c:\diagram\new
can I run the script on my workstation (not the in place workstation with the data) and move the files to the network share?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks newvillage... can I also run the script using different credentials?
The above example is just a .bat file correct?
The above example is just a .bat file correct?
Revised: Added /c argument
Yes, a .bat file. In Task Scheduler...
Actions, Program/script: cmd
Add arguments: /c batfilename.bat
For your creds:
General, Run whether user is logged on or not, Change User or Group
Yes, a .bat file. In Task Scheduler...
Actions, Program/script: cmd
Add arguments: /c batfilename.bat
For your creds:
General, Run whether user is logged on or not, Change User or Group
ASKER
1) my workstation where I would like to run the script from
2) production workstation where the app and data are running. -data not in a network share
3) the server in the datacenter where I want to copy the files to