EditFile function

Top  Previous  Next

Opens a file for editing. Usually if a .csv file is opened it will open in Excel, if Edited, it will open in Nopepad.

 

Syntax

 

EditFile( fileName )

 

Parameters

fileName

 

the file to open, edit, copy, delete, or move

 

 

 

returns

 

n/a

 

Examples

 

CopyFile( "c:\correlation.htm", "c:\corr2.htm" )

DeleteFile( "c:\correlation.htm" )

MoveFile( "c:\corr2.htm", "c:\corr3.htm" )

OpenFile( "c:\corr3.htm" ) ' Will open in IE (or other browser) as defined by windows.

EditFile( "c:\corr3.htm" ) ' Will open in html editor as defined by windows.

OpenFile( "c:\Test.csv" ) ' Will open in Excel, as defined by windows.

EditFile( "c:\Test.csv" ) ' Will open in Notepad, as defined by windows.