×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Need to do a Directory check for minmum four characters length

Need to do a Directory check for minmum four characters length

Need to do a Directory check for minmum four characters length

(OP)
Hi All,
  Can any body help me how to do this. I am trying to figure out using WISE how to do directory check for minimum character length and display a message to the user

RE: Need to do a Directory check for minmum four characters length

Try writing the following if you are using Wise Installmaster. Items indicate the Standard Actions. Just copy paste these lines in the  wise scrip editor and you will get the result. let me know if it helps.

Cheers...

item: Check Disk Space
end
item: Set Variable
  Variable=DESTDIR
  Value=C:\Practise
end
item: Browse for Directory
  Variable=DIRECT
  Flags=0
  Window Name=Directory
  Prompt Description=Display directory listing
end
item: Set Variable
  Variable=LENGTH
  Value=Len(DIRECT)
  Flags=00100000
end
item: Display Message
  Title=Directory Name & Length
  Text=The directory is %DIRECT% & length = %LENGTH%
end
item: If/While Statement
  Variable=LENGTH
  Value=6
  Flags=00000110
end
item: Display Message
  Title=Error
  Text=Please Select Directory name greator than 4 chars
end
item: Browse for Directory
  Variable=DIRECT
  Flags=0
  Window Name=Directory
  Prompt Description=Display directory listing
end
item: End Block
end

Saurabh Kumar, HP GDIC, Bangalore

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close