![]() |
#1
|
|||
|
|||
![]()
Hi.
Where can I find Corelscript command? Code:
... With CorelScript .(What commands can I use here?) End With ... ![]() I got the settings in a .txt file. I need to move them by VBA. Is it possible? Thanks. ~GrzJanik |
#2
|
||||
|
||||
![]()
If you are using a recent version of CorelDRAW there is no need to use CorelScript commands, these are remnants of the old CorelScript language and it has been replaced with VBA.
Really, use VBA. :-) -Shelby |
#3
|
|||
|
|||
![]()
Hi, Shelby.
Thanks for your reply. I'm using CorelDraw 12 and I need to know all the possible operations on files (copy/delete/move/rename/etc.). I got the settings in a .txt file. I need to move them by VBA. Is it possible? I searched the forum how to transfer a file from one directory to another by VBA but have not found a solution. Can you write a code example of the syntax: - moves the file from C:\settings.txt to c:\My Macro\settings.txt - copies the file from C:\settings.txt to c:\My Macro\settings.txt - renames the file from C:\settings.txt to c:\MyMacroSettings.txt - deletes the file from C:\settings.txt (most "kill" ?) ![]() Thank you in advance. ~GrzJanik |
#4
|
||||
|
||||
![]()
- moves the file from C:\settings.txt to c:\My Macro\settings.txt
Code:
Move "C:\settings.txt" "C:\My Macro\settings.txt" Code:
FileCopy "C:\settings.txt" "C:\My Macro\settings.txt" Code:
Name "C:\settings.txt" As "c:\MyMacroSettings.txt" Code:
Kill "C:\settings.txt" -Shelby |
#5
|
|||
|
|||
![]()
Hi Shelby.
Thanks a lot. This is what I meant. As usual, you can count on you. ![]() Best regards. ~GrzJanik |
![]() |
Tags |
corelscript |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Colour Balance in VBA/Corelscript | cooloox | Corel Photo-Paint VBA | 2 | 12-03-2009 23:18 |
CorelScript.MenuCommand constants? | wOxxOm | CorelDRAW/Corel DESIGNER VBA | 2 | 03-01-2007 17:39 |
Use Application.CorelScript() with C# (.NET) | Pickuptrucker | CorelDRAW/Corel DESIGNER VBA | 1 | 30-01-2006 14:57 |
CorelScript.GetPixelColor | Michael Cervantes | Corel Photo-Paint VBA | 2 | 28-07-2004 02:16 |
CorelScript to VBA | dominiqueL | CorelDRAW/Corel DESIGNER VBA | 4 | 19-01-2003 00:29 |