Jump to content

how to save cookies and restore them later?


Recommended Posts

@soulhealer

Maybe...

$what = InputBox('Cookie', '"move" for move cookies to desktop' & @CRLF & '"replace" to replace them to original folder', 'move', '', 250, 150)

If $what = "move" Then
    DirCreate(@DesktopDir & "\Cookies")
    FileMove(@HomePath & "\Cookies\*.txt", @DesktopDir & "\Cookies\", 9)
ElseIf $what = "replace" Then
    FileMove(@DesktopDir & "\Cookies\*.txt", @HomePath & "\Cookies\", 9)
    DirRemove(@DesktopDir & "\Cookies")
EndIf

Cheers, FireFox.

Link to comment
Share on other sites

@soulhealer

Maybe...

$what = InputBox('Cookie', '"move" for move cookies to desktop' & @CRLF & '"replace" to replace them to original folder', 'move', '', 250, 150)

If $what = "move" Then
    DirCreate(@DesktopDir & "\Cookies")
    FileMove(@HomePath & "\Cookies\*.txt", @DesktopDir & "\Cookies\", 9)
ElseIf $what = "replace" Then
    FileMove(@DesktopDir & "\Cookies\*.txt", @HomePath & "\Cookies\", 9)
    DirRemove(@DesktopDir & "\Cookies")
EndIf

Cheers, FireFox.

aw, i didn't thought that easy :) thanks a lot.
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...