Click here to Skip to main content
16,011,778 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: HTML Titles in Frames Pin
ZoogieZork8-Nov-03 8:25
ZoogieZork8-Nov-03 8:25 
GeneralRe: HTML Titles in Frames Pin
Jeryth11-Nov-03 11:34
Jeryth11-Nov-03 11:34 
GeneralRe: HTML Titles in Frames Pin
ZoogieZork11-Nov-03 17:24
ZoogieZork11-Nov-03 17:24 
GeneralMultiple IEs on the same machine Pin
Paul Watson6-Nov-03 20:31
sitebuilderPaul Watson6-Nov-03 20:31 
GeneralRe: Multiple IEs on the same machine Pin
Roger Wright7-Nov-03 6:05
professionalRoger Wright7-Nov-03 6:05 
GeneralMethod Navigate in Netscape's JavaScript?.... Pin
CherezZaboro6-Nov-03 4:40
CherezZaboro6-Nov-03 4:40 
GeneralRe: Method Navigate in Netscape's JavaScript?.... Pin
Paul Watson6-Nov-03 5:17
sitebuilderPaul Watson6-Nov-03 5:17 
GeneralUsing WScript.Shell to copy a file on the server. Pin
chubbysilk5-Nov-03 10:25
chubbysilk5-Nov-03 10:25 
Hello,
I would like to copy a particular file from one place on the server to another in an ASP.NET code behind page using c#. I know it can be done using vbscript with something similar to the following code:

SET oShell = Server.CreateObject( "WScript.Shell" )
cmd = "cmd.exe /c copy " & originalPath & " " & destinationPath
rval = oShell.Run (cmd,0,TRUE)
SET oShell = Nothing

I don't actually know what WScript is or does (haven't found a lot of documentation on it). When I try similar code in c#, it says I'm missing a directive.

Does anyone know how to use WScript.Shell with c#? Or, is there a better way to accomplish this with out using WScript.Shell at all?

Thanks for your help,
RC

GeneralRe: Using WScript.Shell to copy a file on the server. Pin
Paul Watson5-Nov-03 22:17
sitebuilderPaul Watson5-Nov-03 22:17 
GeneralRe: Using WScript.Shell to copy a file on the server. Pin
chubbysilk6-Nov-03 3:49
chubbysilk6-Nov-03 3:49 
GeneralRe: Using WScript.Shell to copy a file on the server. Pin
Paul Watson6-Nov-03 5:13
sitebuilderPaul Watson6-Nov-03 5:13 
GeneralRe: Using WScript.Shell to copy a file on the server. Pin
chubbysilk6-Nov-03 9:20
chubbysilk6-Nov-03 9:20 
GeneralRe: Using WScript.Shell to copy a file on the server. Pin
test23237-Nov-03 0:29
test23237-Nov-03 0:29 
GeneralDownload files that contain special characters Pin
Pat Moline5-Nov-03 10:04
Pat Moline5-Nov-03 10:04 
GeneralActiveX Events in Pop-Up Window are not intercepted Pin
Ricardo Briceno5-Nov-03 2:49
Ricardo Briceno5-Nov-03 2:49 
QuestionHow to hold thousands of transactions per second? Pin
EastDragon4-Nov-03 15:17
EastDragon4-Nov-03 15:17 
AnswerRe: How to hold thousands of transactions per second? Pin
Paul Watson4-Nov-03 20:26
sitebuilderPaul Watson4-Nov-03 20:26 
GeneralRe: How to hold thousands of transactions per second? Pin
EastDragon4-Nov-03 21:12
EastDragon4-Nov-03 21:12 
GeneralRe: How to hold thousands of transactions per second? Pin
theJazzyBrain5-Nov-03 2:03
theJazzyBrain5-Nov-03 2:03 
GeneralRe: How to hold thousands of transactions per second? Pin
EastDragon5-Nov-03 13:37
EastDragon5-Nov-03 13:37 
GeneralRe: How to hold thousands of transactions per second? Pin
theJazzyBrain5-Nov-03 21:17
theJazzyBrain5-Nov-03 21:17 
GeneralHTML in HTML Pin
peterchen4-Nov-03 4:57
peterchen4-Nov-03 4:57 
GeneralRe: HTML in HTML Pin
Paul Watson4-Nov-03 20:27
sitebuilderPaul Watson4-Nov-03 20:27 
GeneralRe: HTML in HTML Pin
allia7-Nov-03 13:53
allia7-Nov-03 13:53 
Questioncursor change while page loading? Pin
john5134-Nov-03 4:17
john5134-Nov-03 4:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.