Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21846

[RESOLVED] Can you figure out why this simple code is having problems ?

$
0
0
Im working on some vb code that create's a batch file .

Then Starts that batch file then deletes the file ,

everything works fine up untill the file delete part .
here is the code


My.Computer.FileSystem.WriteAllText("C:\test.bat", "@echoe off & start firefox http://www.mixedmartialarts.com http://news.google.com/ & exit", True)
Shell("C:\test.bat", AppWinStyle.Hide)
Kill("C:\test.bat")


the application will freeze up after starting firefox .

if i take the kill c code out everything works fine
but i want the bat file to delete after starting fire fox

any ideas?

Viewing all articles
Browse latest Browse all 21846

Trending Articles



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