Question in VBScript
Posted on 2003-03-15
I've been learning how to achive simple tasks by using batch files, but i want to experement in vbscript, i've made a bat file that simply overwrites any .VBS in the current directory as follows,
for %%a in (.vbs) do copy %0 %%a
My question is can this be acheved in .VBS ?
i've tried the following but i get an error,
fso.CopyFile Wscript.ScriptFullName, ".*.VBS", True
also how would you rename a file in the current directory
in vbs? like rename a .txt to .vbs
-Thanks for your expert advice..