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?
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?