Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

"%1 is not a valid Win32 Application" fix for Server2Go

By: tniemi on May 18th, 2012  |  syntax: VisualBasic  |  size: 0.54 KB  |  views: 77  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ' Start Server2Go with a short (8.3) path and file name
  2. ' (This is a workaround for the "%1 is not a valid Win32 Application" error message.)
  3. ' Written by Tero Niemi, http://tech.nimbus.fi/
  4.  
  5. ' *** Save this file as "Start.vbs" in the same folder as "Server2Go.exe" ***
  6.  
  7. Const program = "Server2Go.exe" ' program to start
  8. Set filesystem = CreateObject("Scripting.FileSystemObject")
  9. If filesystem.FileExists(program) Then
  10.         Set file = filesystem.GetFile(program)
  11.         Set shell = CreateObject("WScript.Shell")
  12.         shell.Run(file.shortPath)
  13. End If
  14.  
  15. ' eof