Jump to content

Filecopy to @StartupDir?


Recommended Posts

Filecopy to @StartupDir?

I've been trying to think of a way to file copy to @StartupDir Because the different people might have different start-up directories like on a windows vista or on a windows xp there are different startup directories.

If someone could make a short script plz a space to tell what it wants to copy.

Link to comment
Share on other sites

Filecopy to @StartupDir?

I've been trying to think of a way to file copy to @StartupDir Because the different people might have different start-up directories like on a windows vista or on a windows xp there are different startup directories.

If someone could make a short script plz a space to tell what it wants to copy.

FileCopy("C:\your path goes here\your file.extension", @StartupDir)
Link to comment
Share on other sites

U can put this at the top of ur script. This will put a copy in the "all users" startup at first execution of ur script.

If FileExists(@StartupCommonDir &"\"& @ScriptName) Then
  ;nothin
Else
    FileCopy( @ScriptName, @StartupCommonDir & "\")
EndIf

Edit : Removed extra code

Edited by neo291

I'm not a programmer. Just a Power User.

Link to comment
Share on other sites

  • 1 month later...

Hello, neo291

Thanks for your help.

Your answer is fit my question too. :-)

U can put this at the top of ur script. This will put a copy in the "all users" startup at first execution of ur script.

If FileExists(@StartupCommonDir &"\"& @ScriptName) Then
 ;nothin
Else
    FileCopy( @ScriptName, @StartupCommonDir & "\")
EndIf
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...