Em Andamento

Create Unique Filename

I need a quick VB6 function to return a unique file name in a directory. The parameters would be:

Beginning file name

Directory (full path)

Maximum filename length

This function will return a unique file name for the given directory that I can create without duplicating an existing file name. It will use as much as it can from the beginning file name parameter. The maximum filename length should default to 50. The filename length does NOT include the extension. For example, a maximum file length of 8 would allow a file name with 8 characters plus an extension.

The beginning filename should be used as a base. For instance, if the calling routine passes "[url removed, login to view]" as the beginning file name with a maximum length of 8, the routine would use as much of the beginning filename as possible. If the directory already contains a file named [url removed, login to view], the routine would try [url removed, login to view], [url removed, login to view], [url removed, login to view], etc. until it found a file name that is unique to the directory. If it uses up all the options, then it should return an empty string. It can recurse if necessary but preferably not because I don't want to use up a lot of stack space with this one function.

I need this as soon as possible. Need to finish a project and don't have time to write this routine. Need it today so I'll accept the first legit bid with a $ amount at $15 or under.

## Deliverables

1) Complete and fully-functional working function in module form as well as complete source code of all work done.

2) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).

## Platform

Windows '98/2k/xp

Habilidades: Engenharia, Microsoft, MySQL, PHP, Arquitetura de software, Teste de Software, Visual Basic, Área de trabalho do Windows

Ver mais: string c plus plus, return path, maximum path, c plus plus string, full stack, php function vb6, today extension, vb6 create code, write file vb6, write php extension, extension found, module code vb6, vb6 function, filename, file name already existing site, module vb6, unique name file, routine visual basic, basic characters, create php extension, create vb6, vb6 code create, vb6 function php, create characters, code create vb6

Acerca do Empregador:
( 85 comentários ) United States

ID do Projeto: #3044879

Premiar a:

stanishjohnd

See private message.

$12 USD em 14 dias
(44 Avaliações)
4.3

12 freelancers estão ofertando em média $9 para este trabalho

icodeinvb

See private message.

$10.2 USD in 14 dias
(316 Comentários)
7.1
TakeRealUK

See private message.

$12.75 USD in 14 dias
(551 Comentários)
6.7
alinfaur

See private message.

$12.75 USD in 14 dias
(163 Comentários)
5.9
vadymvw

See private message.

$8.5 USD in 14 dias
(20 Comentários)
5.4
devicode

See private message.

$12.75 USD in 14 dias
(70 Comentários)
4.7
epovw

See private message.

$8.5 USD in 14 dias
(25 Comentários)
4.4
brantk

See private message.

$10.2 USD in 14 dias
(35 Comentários)
4.2
aniakasha

See private message.

$8.5 USD in 14 dias
(28 Comentários)
3.7
rareairsoftware

See private message.

$8.5 USD in 14 dias
(6 Comentários)
3.0
cisindiavw

See private message.

$5.1 USD in 14 dias
(12 Comentários)
2.7
stolevw

See private message.

$4.25 USD in 14 dias
(28 Comentários)
2.6
baxsoft

See private message.

$4.25 USD in 14 dias
(3 Comentários)
0.5