Computer programmers..can you help me?

Posted By Message

luvsun27
Check out my cool glasses

Member since 5/05

8135 total posts

Name:
Kim

Computer programmers..can you help me?

I have a vbs script to rename a file with the previous Sunday's date. This script works perfectly fine on my windows XP machine, however, I am getting a runtime error when trying to execute on a windows vista machine. Do I need to change a setting somewhere on my vista machine to get this work?

I have already tried to run regsvr32 vbscript.dll in administrator mode and I got a message that the registration was successful...but still can't get the script to execute.

It works exactly as it is on an XP machine, so I don't think it's my code. Anyone have any ideas????? Thanks!

The runtime error states that the path can't be found:

Image Attachment(s):
Posted 2/6/09 8:50 AM
 
Long Island Weddings
Long Island's Largest Bridal Resource

lucyloo
nope

Member since 1/06

9758 total posts

Name:

Re: Computer programmers..can you help me?

This may sound obvious but does that path actually exist? I've had problems running programs on Vista as well.

Posted 2/6/09 9:33 AM
 

luvsun27
Check out my cool glasses

Member since 5/05

8135 total posts

Name:
Kim

Re: Computer programmers..can you help me?

Yes the path does exist. I also tried to move it to C:\temp but got the same message

Posted 2/6/09 9:49 AM
 

Blazesyth
*yawn*

Member since 5/05

8129 total posts

Name:

Re: Computer programmers..can you help me?

Stupid question, but do you have 'view file extentions' on in Explorer?

I hate that sometimes if you dont have that on you don't notice and the actual filename is really script.bat.txt

Posted 2/6/09 10:15 AM
 

luvsun27
Check out my cool glasses

Member since 5/05

8135 total posts

Name:
Kim

Re: Computer programmers..can you help me?

Yep...I already file extensions shown and it shows DateBegWeek.vbs

Posted 2/6/09 4:06 PM
 

BabyBoy
is Skylar Elizabeth

Member since 5/05

4189 total posts

Name:
Tom

Re: Computer programmers..can you help me?

hmm

what command is on line 6 that is causing this to stop?

you may want to try and run the vbs file as an admin (right click and you "may" see this option)

Vista has a slightly different setup in windows folder so it may be calling something that inst there.

Posted 2/6/09 7:39 PM
 

luvsun27
Check out my cool glasses

Member since 5/05

8135 total posts

Name:
Kim

Re: Computer programmers..can you help me?

I have tried running it as admin, but I get the same result. It can be the code on line 6 that is incorrect because it runs on XP. Ahhhhhhhhhhh

Posted 2/6/09 7:42 PM
 

BabyBoy
is Skylar Elizabeth

Member since 5/05

4189 total posts

Name:
Tom

Re: Computer programmers..can you help me?

i understand that, can you debug and see what is on line 6?

Posted 2/6/09 7:49 PM
 

luvsun27
Check out my cool glasses

Member since 5/05

8135 total posts

Name:
Kim

Re: Computer programmers..can you help me?

Here is the syntax of the script. As I said...it has to be somehing specific to Vista because it works fine on XP and also a windows 2000 machine.

Dim dtDateBegWeek, fname1
dtDateBegWeek = date-datepart("w",date-1)
fname1 = "aROsaleslast.xls" & left(dtDateBegWeek,2) & mid(dtDateBegWeek,4,2) & right(dtDateBegWeek,2)
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
fso.MoveFile "aROsaleslast.xls", fname1


Posted 2/6/09 8:43 PM
 

leighla
Support Cancer Research

Member since 5/05

16353 total posts

Name:
Lauren

Re: Computer programmers..can you help me?

No clue, but I just wanted to say that this thread may as well be written in Swahili for all the sense if makes to me.

Chat Icon

Posted 2/6/09 8:58 PM
 

MrsERod
Praying for Everyone.

Member since 5/05

26170 total posts

Name:
MrsERod™®

Re: Computer programmers..can you help me?

Posted by leighla

No clue, but I just wanted to say that this thread may as well be written in Swahili for all the sense if makes to me.

Chat Icon




Chat Icon i swear, before i read your reply, i was going to respond with "can someone translate this thread for me" Chat Icon Chat Icon Chat Icon Chat Icon

Posted 2/6/09 9:06 PM
 

Stacey1403
Where it all began....

Member since 5/05

24065 total posts

Name:

Re: Computer programmers..can you help me?

I know in my head as I read I hear the Charlie Brown teacher voice...

Wah wah wah wahChat Icon

Posted 2/6/09 9:07 PM
 

luvsun27
Check out my cool glasses

Member since 5/05

8135 total posts

Name:
Kim

Re: Computer programmers..can you help me?

Thanks guys! Remember this thread the next time you ask one of your IT people if they can magically make a file move/appear somewhere so that its where you want it when you come to work in the morning Chat Icon

Posted 2/6/09 9:11 PM
 

HillW9608
Hello Summer!

Member since 5/08

5916 total posts

Name:
Hill

Re: Computer programmers..can you help me?

DH is a comp prog.. and I just had him look at it. Maybe he had too much wine with dinner but he said to google the code lol.

To me, its totally a foreign language.

Posted 2/6/09 9:37 PM
 

luvsun27
Check out my cool glasses

Member since 5/05

8135 total posts

Name:
Kim

Re: Computer programmers..can you help me?

I have googled it...and have come up with no solutions as to why it works with XP and not Vista other than Vista SUCKS Chat Icon

Posted 2/6/09 9:42 PM
 
 

Potentially Related Topics:

Topic Posted By Started Replies Forum
Question for those who have a Dell computer MrsPornStar 3/21/06 15 Families Helping Families ™
Computer Help Please mrswask 3/10/06 6 Families Helping Families ™
Anyone know why my computer isn't saving pics in the right format? KaRiSsA 3/5/06 0 Families Helping Families ™
Sometimes I find myself rolling my eyes at the computer screen Shorty 2/27/06 290 Families Helping Families ™
Out of computer shape! julz33 2/25/06 7 Families Helping Families ™
Computer question... sending emails to a group JennChris 2/21/06 4 Families Helping Families ™