shell - Visual Basic CMD/.bat Issue -
i'm beyond point of confused.. i've tried everything. i'm trying execute next script;
public class form1 private sub button2_click(byval sender system.object, byval e system.eventargs) handles button2.click shell("cmd.exe") sendkeys.send("cd desktop") end sub
basically add together string "sendkeys.send("{enter}")
reply endless spam of cmd boxes.
i want able access "desktop" access .bat file. way if send programme if set .bat file on desktop it'll read same on mine. issue no matter efforts set in receive spam. please help? much appreciated.
this open command window in specified folder - need? shell("cmd.exe /k cd \temp", appwinstyle.normalfocus)
edit : run batch file on user's desktop (quotes around path+name in case of spaces in path)
dim path string = environment.getfolderpath(environment.specialfolder.desktop) system.diagnostics.process.start("""" & path & "\test.bat""")
shell batch-file cmd
No comments:
Post a Comment