Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to do a Directory check for minmum four characters length

Status
Not open for further replies.

ushasanagala

IS-IT--Management
Oct 22, 2004
1
0
0
US
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
 
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...[idea]

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top