Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

Answered VBS Expected Statement Error

  • jeudi 24 mai 2012 01:22
     
     

    Help.

    I am getting Expected Statement Error 800A0400 when runing this vbs

    rundll32 c:\windows\system32\shimgvw.dll,ImageView_PrintTo /pt "C:test\test.JPG" "EPSON Stylus"

    I am trying to print a picture without opening the picture viewer, in Vista Home Premium

    Thxs

Toutes les réponses

  • jeudi 24 mai 2012 01:49
    Modérateur
     
     Traitée

    That is not a VBScript program. It can be saved in a file with *.bat (or *.cmd) extension and run as a batch file program. Or, the statement can be entered manually at a command prompt.


    Richard Mueller - MVP Directory Services

  • jeudi 24 mai 2012 02:00
     
     
    thks.
  • jeudi 24 mai 2012 02:15
     
     

    Help.

    I am getting Expected Statement Error 800A0400 when runing this vbs

    rundll32 c:\windows\system32\shimgvw.dll,ImageView_PrintTo /pt "C:test\test.JPG" "EPSON Stylus"

    I am trying to print a picture without opening the picture viewer, in Vista Home Premium

    Thxs

    Your commad is not a Visa command.   You need to go to the Vista user forum and ask how to print pictures from the command line.

    Just calling this VBScript will not make it VBScript..

    Sorry.


    ¯\_(ツ)_/¯