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. C#
  4. run a locked EXE file ???

run a locked EXE file ???

Scheduled Pinned Locked Moved C#
csharpquestion
5 Posts 4 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.
  • A Offline
    A Offline
    AhmedOsamaMoh
    wrote on last edited by
    #1

    Dear ALL now i made an App C# which it write an EXE to a certain Path and it lock this file , now i need the same app to run this EXE while its locked !! ?? How?? does any one have an idea? thanks bye

    C M 2 Replies Last reply
    0
    • A AhmedOsamaMoh

      Dear ALL now i made an App C# which it write an EXE to a certain Path and it lock this file , now i need the same app to run this EXE while its locked !! ?? How?? does any one have an idea? thanks bye

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Adore C++ wrote:

      now i made an App C# which it write an EXE to a certain Path and it lock this file , now i need the same app to run this EXE while its locked !! ??

      What do you mean by "locked"?

      *Developer Day Scotland - Free community conference Delegate Registration Open

      A 1 Reply Last reply
      0
      • A AhmedOsamaMoh

        Dear ALL now i made an App C# which it write an EXE to a certain Path and it lock this file , now i need the same app to run this EXE while its locked !! ?? How?? does any one have an idea? thanks bye

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        Just a guess, you have a shortcut to the exe in your debug folder and you cannot run the app from the shortcut as it is "locked" by VS which just completed a compile? Closing VS will free up the file - why are you running from a shortcut?

        Never underestimate the power of human stupidity RAH

        1 Reply Last reply
        0
        • C Colin Angus Mackay

          Adore C++ wrote:

          now i made an App C# which it write an EXE to a certain Path and it lock this file , now i need the same app to run this EXE while its locked !! ??

          What do you mean by "locked"?

          *Developer Day Scotland - Free community conference Delegate Registration Open

          A Offline
          A Offline
          AhmedOsamaMoh
          wrote on last edited by
          #4

          this what i mean ...........

          FileStream fileStream = new FileStream ........
          fileStream.WriteByte .......... some where in C:\.....
          fileStream.Lock

          this filestram is EXE and it now locked , no other process can read it , now i need to run such EXE ?? how can i do that?? thanks all bye

          L 1 Reply Last reply
          0
          • A AhmedOsamaMoh

            this what i mean ...........

            FileStream fileStream = new FileStream ........
            fileStream.WriteByte .......... some where in C:\.....
            fileStream.Lock

            this filestram is EXE and it now locked , no other process can read it , now i need to run such EXE ?? how can i do that?? thanks all bye

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            How would you run something that can't be read?

            I are troll :)

            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