Re: convert to vbs

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Gavin wrote:
I need to know how I can convert this batch file to vbs and to make
sure that it copies the file to the "All Users" profile on the
system... any help would be appreciated...

Copy "\\servername\NETLOGON\URL\propertyinfo.url"
"%userprofile%\desktop\"


Copy "\\servername\NETLOGON\URL\afw customer form.url"
"%userprofile%\desktop\"

set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("AllUsersDesktop")
Set fso = CreateObject("Scripting.FileSystemObject")
set DestFile = fso.GetFile ("\\servername\NETLOGON\URL\propertyinfo.url")
DestFile.Copy strDesktop,true


.



Relevant Pages

  • Re: lost profile in xp sp1
    ... > Oh and my customer ran scandisk which has come up with some bad blocks - ... His local profile is corrupted. ... >> Associate Expert - WindowsXP Expert Zone ... >> Windows help - www.rickrogers.org ...
    (microsoft.public.windowsxp.general)
  • Re: Customer continues to lose profile
    ... recreated profile on server but then this will pull down the profile from ... pc which has a possible corrupted file. ... We have a customer running Windows XP sr3. ... Well this morning customer reported profile is missing again. ...
    (microsoft.public.windowsxp.general)
  • Re: Terminal Server Sizing
    ... "Patrick Rouse" wrote in message ... > Microsoft MVP - Terminal Server ... >> A customer of ours is expereincing an overload problem with their ... Would simply using the one mandatory profile help ...
    (microsoft.public.windows.terminal_services)
  • Re: Mixed NOS Farm
    ... terminal service farm. ... you need to balance having profile differences with the upside of roaming ... The customer is requesting that I mix both W2K and W2K3 servers within our ...
    (microsoft.public.windows.terminal_services)
  • Re: Problems with profiles
    ... > times he logs on to his computer he gets the following message. ... > attempting to log you on with your local profile. ... The customer has a dell laptop and so do I with the ...
    (microsoft.public.windowsxp.network_web)