Click here to Skip to main content
16,005,697 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questiondifference between Windows Script and VB Script Pin
Mridang Agarwalla4-Jun-06 1:50
Mridang Agarwalla4-Jun-06 1:50 
AnswerRe: difference between Windows Script and VB Script Pin
Guffa4-Jun-06 10:32
Guffa4-Jun-06 10:32 
QuestionExecute application with parameters Pin
Mridang Agarwalla4-Jun-06 1:44
Mridang Agarwalla4-Jun-06 1:44 
AnswerRe: Execute application with parameters Pin
shreekar4-Jun-06 20:13
shreekar4-Jun-06 20:13 
Questionmultiple file copies Pin
Serpent6663-Jun-06 22:20
Serpent6663-Jun-06 22:20 
AnswerRe: multiple file copies Pin
Tamimi - Code3-Jun-06 22:29
Tamimi - Code3-Jun-06 22:29 
GeneralRe: multiple file copies Pin
Serpent6664-Jun-06 4:49
Serpent6664-Jun-06 4:49 
GeneralRe: multiple file copies Pin
shreekar4-Jun-06 20:21
shreekar4-Jun-06 20:21 
You will have to set up a loop that checks for existence of the file and rename it if necessary, like:

<br />
Dim strExtnOnly as string = ".txt"<br />
Dim strFileNameOnly as string = "test"<br />
Dim blnDone as Boolean = false<br />
Dim strDest as string = "Your destination folder"<br />
dim intCounter as integer= 1<br />
<br />
do while blnDone = false<br />
  strFullPath = strDest & "/" strFileNameOnly & strExtnOnly   <br />
  if File.Exists(strFullPath) then<br />
    intCounter+= intCounter<br />
    strFileNameOnly = strFileNameOnly & CStr(intCounter.ToString.padleft("0",2)) ' something like that<br />
  else<br />
    blnDone=True<br />
  end if<br />
loop<br />


HTH

Shreekar
http://shreekarishere.blogspot.com
Questionfrom last character in vb.net 1.1 Pin
amaneet3-Jun-06 19:54
amaneet3-Jun-06 19:54 
AnswerRe: from last character in vb.net 1.1 Pin
Tamimi - Code3-Jun-06 20:11
Tamimi - Code3-Jun-06 20:11 
QuestionI Need Help Pin
jeff063-Jun-06 19:49
jeff063-Jun-06 19:49 
QuestionIncreasing Field Length Pin
May Thu san3-Jun-06 19:12
May Thu san3-Jun-06 19:12 
AnswerRe: Increasing Field Length Pin
Guffa4-Jun-06 0:22
Guffa4-Jun-06 0:22 
QuestionMSIL Conversion Pin
D1113-Jun-06 11:30
D1113-Jun-06 11:30 
GeneralRe: MSIL Conversion Pin
User 17164925-Jun-06 2:16
professionalUser 17164925-Jun-06 2:16 
GeneralRe: MSIL Conversion Pin
D1119-Jun-06 5:52
D1119-Jun-06 5:52 
QuestionConverting pdf by using iTextSharp.dll Pin
pirogramci3-Jun-06 2:09
pirogramci3-Jun-06 2:09 
Question2 projects ! Pin
microuser_20003-Jun-06 0:55
microuser_20003-Jun-06 0:55 
AnswerRe: 2 projects ! Pin
Tamimi - Code3-Jun-06 1:35
Tamimi - Code3-Jun-06 1:35 
GeneralRe: 2 projects ! Pin
microuser_20003-Jun-06 2:14
microuser_20003-Jun-06 2:14 
GeneralRe: 2 projects ! Pin
Tamimi - Code3-Jun-06 2:35
Tamimi - Code3-Jun-06 2:35 
GeneralRe: 2 projects ! Pin
microuser_20003-Jun-06 2:44
microuser_20003-Jun-06 2:44 
QuestionVC.NET application installation Pin
salaikumar2-Jun-06 22:02
salaikumar2-Jun-06 22:02 
AnswerRe: VC.NET application installation Pin
Steve Pullan2-Jun-06 23:40
Steve Pullan2-Jun-06 23:40 
AnswerRe: VC.NET application installation Pin
Kevin McFarlane3-Jun-06 3:18
Kevin McFarlane3-Jun-06 3:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.