Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. dos commands

dos commands

Scheduled Pinned Locked Moved Visual Basic
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    r i s h a b h s
    wrote on last edited by
    #1

    dear all how do i execute dos commands like "net send" and deltree from vb thanx and regards rishabhs

    T O 2 Replies Last reply
    0
    • R r i s h a b h s

      dear all how do i execute dos commands like "net send" and deltree from vb thanx and regards rishabhs

      T Offline
      T Offline
      Tim McCurdy
      wrote on last edited by
      #2

      Shell or ShellExecute API Not all those who are lost are looking to be found. But of those who are lost and those who are found, all are looking for something higher than themselves.

      1 Reply Last reply
      0
      • R r i s h a b h s

        dear all how do i execute dos commands like "net send" and deltree from vb thanx and regards rishabhs

        O Offline
        O Offline
        OMalleyW
        wrote on last edited by
        #3

        do you have access to SQL Server or MSDE ?? if yes try this in a stored procedure.. declare @command varchar(1000) -- delete a file on the C drive SELECT @command = 'del C:\Test.txt' -- execute DOS command master.dbo.xp_cmdshell @command that should do it

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups