-4

There is a folder in which I have a file, and a shortcut to that file.

I need a VBscript in the same folder which will move the shortcut to the desktop.

If there is any more information you require to help me, I will give it to you.

Tomalak
  • 332,285
  • 67
  • 532
  • 628
  • 1
    The best way to get help here is to first try something. If you get stuck, do some research, make an attempt at fixing things yourself, and only then ask a specific question about your attempts, showing what you have tried. Questions asking for complete solutions without demonstrating research effort usually get downvoted and closed. – Jean-François Corbett Mar 14 '15 at 12:08
  • 1
    We are not here to implement your requirements. You know what you have to do, so do it. There is official documentation on the MSDN and countless examples of file handling all over the internet. Read them, try it yourself and come back when you are *actually* stuck. – Tomalak Mar 14 '15 at 12:59

1 Answers1

0

I tested it and it works for me...

Dim ObjFso 
Dim SourceLocation 
Dim DestinationLocation 
Dim FileName  

SourceLocation = "C:\REST-OF-PATH"
DestinationLocation = "%userprofile%\Desktop\" 
FileName = "FILENAME"

Set ObjFso = CreateObject("Scripting.FileSystemObject")  
ObjFso.MoveFile SourceLocation & "" & FileName, DestinationLocation & ""

Just copy all this...

Then replace REST-OF-PATHwith the rest of the path

And Replace FILENAME with the name of the file

Community
  • 1
  • 1
rrswa
  • 1,005
  • 1
  • 9
  • 23