Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-11-2004, 05:15 PM
dkallen dkallen is online now
Registered User
 
Join Date: 11-11-2004
Location: Minneapolis, MN
Posts: 3
Type mismatch 'CreateShortcut '

In the VStudio.bld sample
the step Create log shortcut works great.
But when I try to create one , it doesn't work.
As a test, I have a small text file on my hard drive.
c:\dir.txt

I use CreateShortcut as a VBScript with one line

CreateShortcut "C:\dir.txt", "test"

I run it and get

Building project step 'Create log shortcut'...
Error at Line 1, Column 1 (Type mismatch: 'CreateShortcut')
Step 'Create log shortcut' failed
Build ended.

I can find no documentation on CreateShortcut

thanks
David K Allen
Reply With Quote
  #2  
Old 11-11-2004, 07:34 PM
kevina kevina is online now
Registered User
 
Join Date: 03-26-2003
Posts: 825
As the comment states where CreateShortcut is called in the VStudio.bld sample, it is a script function defined as Project script code in VStudio.bld.

You have several options to use this script function in other builds:
1) Copy it as project script in the desired build
2) Copy it as global script, where it will be available for all builds on that machine
3) Copy it into the Run Script step where you want to use it
Reply With Quote
  #3  
Old 11-12-2004, 07:59 AM
dkallen dkallen is online now
Registered User
 
Join Date: 11-11-2004
Location: Minneapolis, MN
Posts: 3
Thanks.
I moved it to Global and now it works fine.
Sorry I didn't know about scripts yet.
I'm only on page 19 of the manual.
I can see I will benefit from reading it first.
And by the way, the manual is very well written.
My thanks for that.
Reply With Quote
  #4  
Old 11-12-2004, 08:20 AM
kevina kevina is online now
Registered User
 
Join Date: 03-26-2003
Posts: 825
Thanks for the compliment on the manual. I will ensure the author sees your positive comments.

Glad it is working for you now...
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off



All times are GMT -5. The time now is 06:44 PM.


Copyright © 1999-2023 Kinook Software, Inc.