Source language: Translate to:

Create a Restore Point

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Create a Restore Point

Postby Alex » Tue May 18, 2010 12:00 pm

Hello,

Is it possible to create a restaure point with Neobook?

Thanks


Alex
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am

Postby Neosoft Support » Wed May 19, 2010 10:17 am

Do you mean a bookmark?

Use the code below to create a bookmark:

Code: Select all
SetVar "[Bookmark]" "[PageTitle]"
FileWrite "[PubDir]bookmark.dat" "1" "[Bookmark]"
AlertBox "BookMark" "BookMark Created on [PageTitle]."


Basically this action writes the name of the current page to a data file and displays a message.

The key to making the bookmark work, is the action assigned to the publication's first page or startup action which will execute each time the publication loads. For example:

Code: Select all
If "[BookMark]" "=" ""
  FileRead "[PubDir]bookmark.dat" "1" "[BookMark]"
  If "[BookMark]" ">" ""
    GotoPage "[BookMark]"
  EndIf
EndIf


This action checks the data file for a bookmark and reads that information into a variable called [BookMark]. If the bookmark is valid then we go to that page.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5605
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Postby Alex » Wed May 19, 2010 10:53 am

Hi Dave,

Ha yes, sorry, I mean a Windows Restore Point. Is it possible to create one automaticaly? (with vbs maybe)?

Thanks


Alex
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am

Postby Alex » Wed May 19, 2010 11:20 am

Hi 70mach1,

Thank you for your answer.

I already tried this code, but it doesn't work with Neobook's call action for the VBS. Is it normal?

Thanks


Alex
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am

Postby Alex » Thu May 20, 2010 12:52 pm

Hi,

I tried and it doesn't work. Does any body else tried it? I am on Vista.

Thanks


Alex
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest

cron