Hi,
I would like to know how to pass arguments to a batch file using vb script.
I am able to run the batch file using wshShell.Run. I am up against a wall here...
[CODE=vb]
Dim WshShell
Set WshShell = CreateObject("W Script.Shell")
dim pos
pos=InstrRev(fu ll,"\")
dim fpath
dim pl
pl= Len(full)-pos-1
fpath= Left(full,pl)
dim fname
dim flen
flen= Len(full)-pos
fname=Right(ful l,flen)
WshShell.Run "setcpath2. bat"
[/CODE]
I need to pass fname and fpath to the batch file.
I would really appreciate any help with this.
Raghu
I would like to know how to pass arguments to a batch file using vb script.
I am able to run the batch file using wshShell.Run. I am up against a wall here...
[CODE=vb]
Dim WshShell
Set WshShell = CreateObject("W Script.Shell")
dim pos
pos=InstrRev(fu ll,"\")
dim fpath
dim pl
pl= Len(full)-pos-1
fpath= Left(full,pl)
dim fname
dim flen
flen= Len(full)-pos
fname=Right(ful l,flen)
WshShell.Run "setcpath2. bat"
[/CODE]
I need to pass fname and fpath to the batch file.
I would really appreciate any help with this.
Raghu
Comment