Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2008
    Posts
    18

    copy the source files

    hi to all,
    i want to copy the source file of my project to current windows directory and make it run it windows.
    i.e, like a startup program but invisible to the user using the computer. is it possible with media studio.


    also how to get the souce file path of the file (autoplay.exe) irrespective of where it has been copied in the system

  2. #2
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    File.Copy(_SourceFolder.."//"..SourceFilename, _WindowsFolder);

  3. #3
    Join Date
    Aug 2003
    Posts
    2,427
    Easiest way to get an app to run at startup is to put it in the " C:\Documents and Settings\All Users\Start Menu\Startup " folder although I don't have Vista and it might be a problem copying stuff into there on machines that are running it - don't know.

    You can do it via registry as well but same problem will exist.

    It would be good practice to tell/ask users when you do it and offer an opt out.

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    if vista blocks access to the startup folder then you can bet the registry is also blocked

    why copy the app ??, create a shortcut to your app in the startup folder then test if the file exists to make sure it was created
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. ANSI To UNICODE Is Finished!
    By coderanger in forum AutoPlay Media Studio 6.0
    Replies: 7
    Last Post: 08-13-2007, 09:27 AM
  2. Function to Copy a Folder, Sub-folders and files
    By Worm in forum AutoPlay Media Studio 5.0
    Replies: 50
    Last Post: 05-06-2006, 07:49 AM
  3. Unable to find software?
    By NigelLacey in forum Visual Patch 2.0
    Replies: 4
    Last Post: 10-11-2005, 10:35 AM
  4. Use source sub-tree as destination sub-tree on multiple files
    By roofrack in forum Setup Factory 6.0
    Replies: 1
    Last Post: 08-27-2003, 07:17 AM
  5. HOWTO: Remove Files that were Installed by a Patch or Alternate Source
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-24-2002, 09:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts