the comparable for %userprofile% in vbs

Home Forums Scripting General Scripting the comparable for %userprofile% in vbs

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    do-d
    Member
    #112951

    hi
    i was trying to make a batch file to copy a file to “שולחן העבודה”
    its not work becuse of the hebrew so im trying to do it in vb script
    this code is working fine the file is copied to the folder
    my qustion is how can i replace the path c:documents and settingsdavid
    in varible like %userprofile% ???

    Const OverwriteExisting = True
    Set objFSO = CreateObject(“Scripting.FileSystemObject”)
    objFSO.CopyFile “C:test1.txt” , “c:documents and settingsdavidשולחן העבודה”, OverwriteExisting[/CODE][CODE]Const OverwriteExisting = True
    Set objFSO = CreateObject(“Scripting.FileSystemObject”)
    objFSO.CopyFile “C:test1.txt” , “c:documents and settingsdavidשולחן העבודה”, OverwriteExisting[/CODE]

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.