hi all, i am trying to run a batch file in vb6 and failing dreadfully,

can anyone give any pointers as to how this can be acheived,

the batch file is as follows

@echo off
cd\
ipconfig /flushdns
ipconfig /registerdns
exit

Look up the shell function...

Shell "C:\mybat.bat", vbHide

and see if it will work for you...

Good Luck

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.