Click here to Skip to main content
15,922,584 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: searching through a site Pin
Divya Rathi22-Feb-06 3:55
Divya Rathi22-Feb-06 3:55 
QuestionUsing a digital camera in my VB project Pin
marclenoir200521-Feb-06 4:16
marclenoir200521-Feb-06 4:16 
QuestionIs there a way to do a spell check on a text box Pin
New_Coder21-Feb-06 3:59
New_Coder21-Feb-06 3:59 
AnswerRe: Is there a way to do a spell check on a text box Pin
uglyeyes21-Feb-06 12:05
uglyeyes21-Feb-06 12:05 
GeneralRe: Is there a way to do a spell check on a text box Pin
New_Coder21-Feb-06 12:12
New_Coder21-Feb-06 12:12 
Questionhow can we use ms agent control in a vb windows application? Pin
kamalika_kk21-Feb-06 3:54
kamalika_kk21-Feb-06 3:54 
AnswerRe: how can we use ms agent control in a vb windows application? Pin
Steve Pullan21-Feb-06 13:46
Steve Pullan21-Feb-06 13:46 
Questionusername filepath Pin
racebit21-Feb-06 3:10
racebit21-Feb-06 3:10 
I'm trying to create a logon script that copies three icons from network drives and then places them on the suers desktop on logon. I can copy the icons fine as administrator, but under anyone elses logon name, i get access denied errors becuase only administrator has write control to the C:\Documents and Settings\All Users\Desktop folder.

What Im trying to do is get the username inserted into the filepath by the script. somethig like this:

'Creating a shell object to launch applications<br />
	Set WShell = CreateObject("WScript.Shell")<br />
<br />
'Creating a network object to gather AD Username Data<br />
	Set objNet = CreateObject("WScript.NetWork") <br />
<br />
	<br />
	user = objNet.UserName<br />
ComputerName = objNet.ComputerName<br />
<br />
'Mapping Network Drives<br />
Set objNetwork = CreateObject("WScript.Network")<br />
objNetwork.MapNetworkDrive "P:" , "\\corp-fs1\apps"<br />
objNetwork.MapNetworkDrive "M:" , "\\corp-fs1\data"<br />
<br />
'Copying Prodent, Lsap, IntelMS<br />
strFilePath = "P:\prodent\apps\public\prodent\shortcut to prodent.lnk"<br />
strDestination =("C:\Documents and Settings\" & user & "\Desktop\")<br />
<br />
<br />
<br />
Set objFSO = CreateObject("Scripting.FileSystemObject")<br />
<br />
<br />
<br />
Set objFileCopy = objFSO.GetFile(strFilePath)<br />
' Copy the file to its destination<br />
objFileCopy.Copy (strDestination)


I need strDestination to = C:\Documents and Settings\ *username*\desktop

Any ideas on how to do this?Confused | :confused: Confused | :confused: Confused | :confused:

"A child of five would understand this! Send someone to fetch a child of five!"-Groucho Marx
AnswerRe: username filepath Pin
Dave Kreskowiak21-Feb-06 6:02
mveDave Kreskowiak21-Feb-06 6:02 
Questionwindows application Pin
illamamatha21-Feb-06 1:48
illamamatha21-Feb-06 1:48 
AnswerRe: windows application Pin
sathish s21-Feb-06 2:03
sathish s21-Feb-06 2:03 
QuestionMetafile & Drag/Drop Pin
A L21-Feb-06 0:22
A L21-Feb-06 0:22 
QuestionTransparent Bitmaps Pin
Chatura Dilan20-Feb-06 23:07
Chatura Dilan20-Feb-06 23:07 
QuestionConvert into VB Pin
Chiari20-Feb-06 21:48
Chiari20-Feb-06 21:48 
AnswerRe: Convert into VB Pin
killawatt21-Feb-06 11:12
killawatt21-Feb-06 11:12 
GeneralRe: Convert into VB Pin
Chiari21-Feb-06 14:43
Chiari21-Feb-06 14:43 
QuestionRead Text from MicrosoftWord using VB.NET Pin
RajaSrirangan20-Feb-06 20:14
RajaSrirangan20-Feb-06 20:14 
GeneralRe: Read Text from MicrosoftWord using VB.NET Pin
Guffa20-Feb-06 21:46
Guffa20-Feb-06 21:46 
Question1 Windows Appln & 1 Web Appln. Pin
DreamQuestioner20-Feb-06 18:49
DreamQuestioner20-Feb-06 18:49 
AnswerRe: 1 Windows Appln &amp;amp; 1 Web Appln. Pin
Dave Kreskowiak21-Feb-06 4:05
mveDave Kreskowiak21-Feb-06 4:05 
Questionupdating database using dataset Pin
mayhem_rules20-Feb-06 18:00
mayhem_rules20-Feb-06 18:00 
AnswerRe: updating database using dataset Pin
RichardBerry21-Feb-06 3:46
RichardBerry21-Feb-06 3:46 
AnswerRe: updating database using dataset Pin
Dave Kreskowiak21-Feb-06 4:04
mveDave Kreskowiak21-Feb-06 4:04 
Questiondetermine client subnet mask in terminal server Pin
samithaslk20-Feb-06 17:45
samithaslk20-Feb-06 17:45 
AnswerRe: determine client subnet mask in terminal server Pin
progload20-Feb-06 18:54
progload20-Feb-06 18:54 

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.