Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

oShell.run query

$
0
0

Hi all

Go easy on me - trying to make move from batch to *.vbs. It's going ....ok.... so far. Most of the *vbs is working except:


Dim oShell
Set oShell = WScript.CreateObject ("WScript.Shell")
oShell.run "ren c:\backup\*.btt ABC1.xml"
Set oShell = Nothing
If I run 
ren c:\backup\*.btt ABC1.xml

from a CMD line it works fine... if I run the *.vbs I get "Line 3 Character 1 System cannot find file specified" 

What am I doing wrong?

Qaz




Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>