Author Topic: Deleting Files  (Read 2777 times)

AnonymousPostings

  • Newbie
  • *
  • Posts: 49
Deleting Files
« on: July 01, 2010, 09:32:33 AM »
Here is the problem --> i'm trying to make a program for my own use for now , some software that clean my computer cookies , cache , history and things like this , i try to put a script but every time i try it it said unknow command .

I make a card them in this card i put a few button , one of this button is call ERASER NOW  , i want to click in this button this way the software start cleaning the computer

let said this is the code i put
DelRegValueList1=HKEY_CURRENT_USERSoftwareGoogleDeskbartermhistory,all
DelRegValueList2=HKEY_CURRENT_USERSoftwareGoogleDeskbarurlhistory,all
with this code it should clean google history

i should use different language ??  or maybe you can reply me this message with a example script , something that help me understand the language better , keep in mind that i'm new on this . and again thank you for your time
« Last Edit: January 01, 1970, 12:00:00 AM by Guest »

Malkom

  • Administrator
  • Newbie
  • *****
  • Posts: 381
  • Here to help you
Re: Deleting Files
« Reply #1 on: July 01, 2010, 09:33:42 AM »
The information about delete files is in the Language Reference PDF - Chapter 15 page 164.

(1) You need to find the pathname to the folder containing the files to delete
     the command FolderUserAppDataFN should return where the current users data folder is.

(2) The command FolderItemGetAbs returns details about a folder/file

(3) The command FolderItemDeleteAll will delete a folder and all items with in it.
      There is also FolderItemeDelete that will delete just one item


When designing a program it is best to break it into steps as shown above, then convert each step into HyperNext script, and when that step works add the next step.

Just add one button and a field to a card, put your script in the button, and any message will be displayed in the field.


Perhaps the best way to start in HyperNext is to follow the 'First Steps' short tutorial on our web site - it only makes an 'Hello World' program but this would help you get started.
Then there is the QuickStart PDF - it goes into more detail.
« Last Edit: January 01, 1970, 12:00:00 AM by Guest »
I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.