VB Script not working

rizmomin

New Member
Messages
5
Hello:

I am knew in this forum.
I have just bought Dell XPS 12 Duo with Windows 8.
I was used to working with Windows 7 and i have few VBS script which worked just fine in Windows 7.
Now the same script would not work on Windows 8.
I would appreciate if someone can help me resolve the problem so that i can run my VB Script.

Thank you..

RM
 

My Computer

System One

  • OS
    Windows 8
"It doesn't work" is not a useful problem report. How would you feel if someone came up to you and said they had a problem and just told you it didn't work?
 

My Computer

System One

  • OS
    Windows 8.1 Pro
    CPU
    Intel i7 3770K
    Motherboard
    Gigabyte Z77X-UD4 TH
    Memory
    16GB DDR3 1600
    Graphics Card(s)
    nVidia GTX 650
    Sound Card
    Onboard Audio
    Monitor(s) Displays
    Auria 27" IPS + 2x Samsung 23"
    Screen Resolution
    2560x1440 + 2x 2048x1152
    Hard Drives
    Corsair m4 256GB, 2 WD 2TB drives
    Case
    Antec SOLO II
    Keyboard
    Microsoft Natural Ergonomic Keyboard 4000
    Mouse
    Logitech MX
Hello:

Attached is the VB Script i am using. It works on Windows 7 but not on Windows 8.

Please help/

Thanks

Riz
 

Attachments

  • EMail_1099.vbs
    911 bytes · Views: 182

My Computer

System One

  • OS
    Windows 8
I'm not going to run a random script. EXPLAIN what the problem is. "It doesn't work" doesn't help.
 

My Computer

System One

  • OS
    Windows 8.1 Pro
    CPU
    Intel i7 3770K
    Motherboard
    Gigabyte Z77X-UD4 TH
    Memory
    16GB DDR3 1600
    Graphics Card(s)
    nVidia GTX 650
    Sound Card
    Onboard Audio
    Monitor(s) Displays
    Auria 27" IPS + 2x Samsung 23"
    Screen Resolution
    2560x1440 + 2x 2048x1152
    Hard Drives
    Corsair m4 256GB, 2 WD 2TB drives
    Case
    Antec SOLO II
    Keyboard
    Microsoft Natural Ergonomic Keyboard 4000
    Mouse
    Logitech MX
Hello:

Basically in Windows 8, when i double click the vbs script, nothing happens.
In Windows 7, when i run the script, it would attach the paystub for employee in Outlook for email.
The email address is truncated within the pdf paystub file name.
Do you need any further information.

Thanks
Riz
 

My Computer

System One

  • OS
    Windows 8
So you have no idea how the script works? Maybe you should ask the person that wrote it.

Where does the paystub come from?
 

My Computer

System One

  • OS
    Windows 8.1 Pro
    CPU
    Intel i7 3770K
    Motherboard
    Gigabyte Z77X-UD4 TH
    Memory
    16GB DDR3 1600
    Graphics Card(s)
    nVidia GTX 650
    Sound Card
    Onboard Audio
    Monitor(s) Displays
    Auria 27" IPS + 2x Samsung 23"
    Screen Resolution
    2560x1440 + 2x 2048x1152
    Hard Drives
    Corsair m4 256GB, 2 WD 2TB drives
    Case
    Antec SOLO II
    Keyboard
    Microsoft Natural Ergonomic Keyboard 4000
    Mouse
    Logitech MX
Hello:

Paystub is created by Excel macro in pdf file format and stored at C:\1Mostly_Used_Files\Supna\MTS\Paystub to be emailed\.

File name is like : 10-31-2012_Karyn L Treciak$279.16%kltreciak@hotmail.com.pdf

Here the email address is trucated by vb script as kltreciak@hotmail.com.

And running the script would open Outlook and attach the above file to email to kltreciak@hotmail.com.

My question is if Windows 8 support vbs? If yes then the script should work as it works in Windows 7.


Riz
 

My Computer

System One

  • OS
    Windows 8
rizmomin, what happens when you run it? What errors do you get?

Is there anything in Event Viewer that may give a clue to what is happening?

Do you have Office installed and is Outlook there and setup?
 

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    1680x1050@59Hz
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH
I need to point out, as I did to the other guy, when these VBscripts were made, Windows Networking used NetBeui and IPS/XPS protocols, maybe NetBT. This probably affects how the scripts run over the network.

Removal of NetBEUI seems to be a huge problem, this is why Hospitals and government agencies have not updated to 7 - They have huge networks built with this protocol, and their server machines depend on it.

MS removed the other protocols so that all networking is run over IPv4 and 6, and 6 seems to be a huge problem too, plus no ISPs are using it.

Search google for "Disable Universal Naming Convention" - It's for XP, but it is in Windows 7 and maybe 8. Try disabling the naming convention, see if your scripts run.
 

My Computer

System One

  • OS
    Windows 8 Pro with Media Center/Windows 7
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Asus M2N-MX SE Plus § DualCore AMD Athlon 64 X2, 2300 MHz (11.5 x 200) 4400+ § Corsair Value Select
    CPU
    AMD 4400+/4200+
    Motherboard
    Asus M2N-MX SE Plus/Asus A8M2N-LA (NodusM)
    Memory
    2 GB/3GB
    Graphics Card(s)
    GeForce 8400 GS/GeForce 210
    Sound Card
    nVIDIA GT218 - High Definition Audio Controller
    Monitor(s) Displays
    Hitachi 40" LCD HDTV
    Screen Resolution
    "1842 x 1036"
    Hard Drives
    WDC WD50 00AAKS-007AA SCSI Disk Device
    ST1000DL 002-9TT153 SCSI Disk Device
    WDC WD3200AAJB-00J3A0 ATA Device
    WDC WD32 WD-WCAPZ2942630 USB Device
    WD My Book 1140 USB Device
    PSU
    Works 550w
    Case
    MSI "M-Box"
    Cooling
    Water Cooled
    Keyboard
    Dell Keyboard
    Mouse
    Microsoft Intellimouse
    Internet Speed
    Cable Medium Speed
    Browser
    Chrome/IE 10
    Antivirus
    Eset NOD32 6.x/Win Defend
    Other Info
    Recently lost my Windows 8 on my main PC, had to go back to Windows 7.
That is a very simple script and it runs perfect on my system (Win 8 Pro, Office 2007). I setup folder named "C:\1Mostly_Used_Files\Supna\MTS\Paystub to be emailed\" and then dropped a PDF in it named
"10-31-2012_Karyn L Treciak$279.16%kltreciak@hotmail.com.pdf". I clicked on the script file and it opens Outlook and creates and formats an email with file attached all ready to be sent.

Assuming you have Outlook installed I can't see much that could go wrong. What I would do is edit line#1 in the script "On error resume next" and change that line to "On error goto 0". That's a zero. That will cause the script to stop running and report any errors when they occur. Post the result that should solve the mystery right away. The only other thing I can think of is to try running it logged into an admin account.
 

My Computer

System One

  • OS
    Windows 8.1 Pro with Media Center
    Computer type
    PC/Desktop
Great! thanks for that.

Obviously, all of the scripts we slaved over in Office 97 will have to be remade sooner or later, and MS has changed all of the rules.
 

My Computer

System One

  • OS
    Windows 8 Pro with Media Center/Windows 7
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Asus M2N-MX SE Plus § DualCore AMD Athlon 64 X2, 2300 MHz (11.5 x 200) 4400+ § Corsair Value Select
    CPU
    AMD 4400+/4200+
    Motherboard
    Asus M2N-MX SE Plus/Asus A8M2N-LA (NodusM)
    Memory
    2 GB/3GB
    Graphics Card(s)
    GeForce 8400 GS/GeForce 210
    Sound Card
    nVIDIA GT218 - High Definition Audio Controller
    Monitor(s) Displays
    Hitachi 40" LCD HDTV
    Screen Resolution
    "1842 x 1036"
    Hard Drives
    WDC WD50 00AAKS-007AA SCSI Disk Device
    ST1000DL 002-9TT153 SCSI Disk Device
    WDC WD3200AAJB-00J3A0 ATA Device
    WDC WD32 WD-WCAPZ2942630 USB Device
    WD My Book 1140 USB Device
    PSU
    Works 550w
    Case
    MSI "M-Box"
    Cooling
    Water Cooled
    Keyboard
    Dell Keyboard
    Mouse
    Microsoft Intellimouse
    Internet Speed
    Cable Medium Speed
    Browser
    Chrome/IE 10
    Antivirus
    Eset NOD32 6.x/Win Defend
    Other Info
    Recently lost my Windows 8 on my main PC, had to go back to Windows 7.
Back
Top