jasonphillipstx
Technical User
I need to write a batch or script to do something like the following. I can do it in Access, but I need a .bat or .vbs file that I can just copy over to a vpn client machine. Thanks in advance for your help.
dim i
dim strCustomer, strSourcePath, strDestDrive, strDestPath
strCustomer = Input Customer Name
strSourcePath = "e:\DCIM\100MSDCT"
strDestDrive = "z:\"
strDestPath = strDestDrive & "\" & strCustomer
map network drive with authentication
net use z: \\server\share
makedir Z:\strCustomer
for each i (jpg files frmo camera)
copy i strDestPath & "\" & strCustomer & "-" & DateTime & ".jpg"
next
If yes, Delete strSourcePath & "\*"
message "all done"
Can this all be done easily?
dim i
dim strCustomer, strSourcePath, strDestDrive, strDestPath
strCustomer = Input Customer Name
strSourcePath = "e:\DCIM\100MSDCT"
strDestDrive = "z:\"
strDestPath = strDestDrive & "\" & strCustomer
map network drive with authentication
net use z: \\server\share
makedir Z:\strCustomer
for each i (jpg files frmo camera)
copy i strDestPath & "\" & strCustomer & "-" & DateTime & ".jpg"
next
If yes, Delete strSourcePath & "\*"
message "all done"
Can this all be done easily?