oceansupport
asked on
Pass Parameters to a VB Script to copy file
I have a batch file to copy files to the local desktop path that I call from my application (MAS200)....but the batch can't pass results back to the user. So, can someone give me a VB Script that I can pass parameters ie., ....
VBScriptName.vbs <PathToSourcefile> <DestinationPath>
I want to give the user a MsgBox indicating the copy results.
Thanks
Craig
VBScriptName.vbs <PathToSourcefile> <DestinationPath>
I want to give the user a MsgBox indicating the copy results.
Thanks
Craig
whoops!! should be a DO....LOOP not a DO....END
ASKER
Will this work with this concept?
CopyScript.vbs <Sourcepath> <destinationpath>
Thanks
CopyScript.vbs <Sourcepath> <destinationpath>
Thanks
No it will not and I am not sure that you can pass parameters to a vbscript, but you can create a vbscript and run it from within a dos batch script. So you can pass the parameters at the time of creation. Just use the script I have provided you as a template of what to have your batch script create.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you!!!!
No problem. Thanks for the grade.
Regards,
Rob.
Regards,
Rob.
Open in new window