01-26-2012 11:19 AM
Hi All,
I have an excel file in my project directory. I want to save or make a copy of that excel file in the directory with a different name i.e. i want to do 'Save As' operation on it whenever user clicks some button. Thanks in advance
Best Regards.
Umer.
Solved! Go to Solution.
01-27-2012 09:40 AM
If you only want to save a file with a new name, in the button callback you can:
All this does not open the file to examine its content.
04-19-2016 05:13 AM
Hello Roberto,
In this, I would like to adda question : - Suppose I have a case in which I have to save a file by any specific name at runtime, means the GUI gives me an option to write the file name at run time and ask me the select a particular directory to save the file. Which specific Labwindows commands must I use to do this?
Thanks
Raunak
04-19-2016 05:21 AM - edited 04-19-2016 05:23 AM
Mi previous answer covers your situation too: FileSelectPopup permits you to specify both a file name and a position where to save it, so that function will return the complete pathname to use to save the file.
If on the contrary the file name is given by the program and you want the operator to set the position only, you can use DirSelectPopup function instead. Next you will use MakePathname () to complete the user-supplied path with the machine-generated file name.