Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Run Command Line
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jing Software  
View profile  
 More options Nov 6 2009, 8:07 pm
Newsgroups: microsoft.public.scripting.vbscript
From: Jing Software <jingproje...@gmail.com>
Date: Fri, 6 Nov 2009 12:07:08 -0800 (PST)
Local: Fri, Nov 6 2009 8:07 pm
Subject: Run Command Line
Hello,

I am trying to run a vbs file on my server that appends a few mp3
files to another and creates a new file.

I can do this from the command line without out any problems:

copy /b D:\Sites\www\applications\recorder\file1.mp3 + D:\Sites\www
\applications\recorder\file2.mp3 D:\Sites\www\applications\recorder
\new.mp3

When I try this in a vbs file or asp file it just hangs in asp and in
the vbs I get the message "cannot find the file specified"

Dim oShell, sCommand
sCommand = "copy /b D:\Sites\www\applications\recorder\file1.mp3 + D:
\Sites\www\applications\recorder\file2.mp3 D:\Sites\www\applications
\recorder\new.mp3"
Set oShell = CreateObject("WScript.Shell")
oShell.Run sCommand, , True
Set oShell = Nothing

Any ideas on what I could be doing wrong?

Thanks

James


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google