Jump to content
Sign in to follow this  
fireking300

Filecopy to @StartupDir?

Recommended Posts

fireking300

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.

Share this post


Link to post
Share on other sites
Kiti

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)

Share this post


Link to post
Share on other sites
neo291

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.

Share this post


Link to post
Share on other sites
yyfy105

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

Share this post


Link to post
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
Sign in to follow this  

×