OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > Macros/Add-ons

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-06-2012, 03:07
grzjanik grzjanik is offline
Member
 
Join Date: Mar 2010
Location: Lodz, Poland
Posts: 86
Send a message via Skype™ to grzjanik
Post Corelscript

Hi.

Where can I find Corelscript command?

Code:
...
 With CorelScript
     .(What commands can I use here?)
 End With
...
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?

Thanks.

~GrzJanik
Reply With Quote
  #2  
Old 12-06-2012, 11:38
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,769
Blog Entries: 9
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default CorelScript

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
Reply With Quote
  #3  
Old 13-06-2012, 02:57
grzjanik grzjanik is offline
Member
 
Join Date: Mar 2010
Location: Lodz, Poland
Posts: 86
Send a message via Skype™ to grzjanik
Post CorelScript

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
Reply With Quote
  #4  
Old 13-06-2012, 10:38
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,769
Blog Entries: 9
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default

- moves the file from C:\settings.txt to c:\My Macro\settings.txt
Code:
Move "C:\settings.txt" "C:\My Macro\settings.txt"
- copies the file from C:\settings.txt to c:\My Macro\settings.txt
Code:
FileCopy "C:\settings.txt" "C:\My Macro\settings.txt"
- renames the file from C:\settings.txt to c:\MyMacroSettings.txt
Code:
Name "C:\settings.txt" As "c:\MyMacroSettings.txt"
- deletes the file from C:\settings.txt (most "kill" ?)
Code:
Kill "C:\settings.txt"
Hope that gets you started,

-Shelby
Reply With Quote
  #5  
Old 13-06-2012, 10:55
grzjanik grzjanik is offline
Member
 
Join Date: Mar 2010
Location: Lodz, Poland
Posts: 86
Send a message via Skype™ to grzjanik
Smile CorelScript

Hi Shelby.

Thanks a lot. This is what I meant.

As usual, you can count on you.

Best regards.

~GrzJanik
Reply With Quote
Reply

Tags
corelscript


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Colour Balance in VBA/Corelscript cooloox Corel Photo-Paint VBA 2 13-03-2009 00:18
CorelScript.MenuCommand constants? wOxxOm CorelDRAW/Corel DESIGNER VBA 2 03-01-2007 18:39
Use Application.CorelScript() with C# (.NET) Pickuptrucker CorelDRAW/Corel DESIGNER VBA 1 30-01-2006 15:57
CorelScript.GetPixelColor Michael Cervantes Corel Photo-Paint VBA 2 28-07-2004 03:16
CorelScript to VBA dominiqueL CorelDRAW/Corel DESIGNER VBA 4 19-01-2003 01:29


All times are GMT -5. The time now is 22:43.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com