473,503 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Please help..Problem in running WScript.Shell in asp.net.

1 New Member
Hi ,

I am working on one ASP.NET application which zips the document files and allow the user to download the files.

For that I am using Izarc command line freeware utility to zip the files.

I am able to create zip the file from if the source files are in local machine as well as if the files to be zipp are in other machines from the network.

My code is as follow as

Dim myObject As New Object
Dim myCommand as String
myCommannd="C:\Progra~1\IZArc\IZARCC.exe -a C:\MyPrint\ZipFile.Zip C:\ZipThis\MyDocFile.doc "

myObject = CreateObject("Wscript.Shell")CreateObject("Wscript .Shell")
myObject.Run(Mycommand, 0, True)


I am able to zip the files if the Source file which is to be zipped is present in the local machine.

My Problem is I am unable to zip the files if the source document folder is present on the another machine.

i mean in above code If
myCommannd=C:\Progra~1\IZArc\IZARCC.exe -a C:\MyPrint\ZipFile.Zip \\machinename\C$\ZipThis\MyDocFile.doc "

Then it doesent create the zip File.Also does not give any error.
Where as i can do same thing by directly ruung the command in 'Run'.

The access to the docuements file is not issue.
I have even tried to run the application under Administrartor account.But still the same problem.

Please ..Help..

Or is there is any other way for the zipping the files.

Thanks
Arun Patil.
Jan 16 '08 #1
0 1324

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2455
by: Joe Foran | last post by:
Hi everyone, I'm in a bit of a bind... I have some batch scripting ability but next to no skill in VBS. I had a set of scripts that would: Query the registry key...
2
11210
by: JackFrost | last post by:
Hi all, I recently read an article on the Windows Scripting Host Object Model (WSHOM) in a back issue of Visual Studios Journal from 2000. As it gives me a useful and easy way to access all of...
4
2305
by: joe | last post by:
I've made an ASP page that calls a small executable and collects its text output into a variable ("strExeOut") below. Below is some code similar to the one I use for that purpose. strExe =...
2
8469
by: Marcin Zmyslowski | last post by:
Hello all! I have installed MSDE on my local computer - Windows 2000 Professional. I have created a function which runs me a link whose path is placed in the input field. This function looks...
8
5359
by: Dutchy | last post by:
Dear reader, In an attempt to obtain the path to the quick-launch-folder in order to create a shortcut to my application-updates during installation , I thought to: 1- check if quick launch...
1
3455
by: Aaron West | last post by:
Try this script to see what queries are taking over a second. To get some real output, you need a long-running query. Here's one (estimated to take over an hour): PRINT GETDATE() select...
2
7209
by: LamSoft | last post by:
When I call the WScript.Shell and "RUN" the object... I've got nothing on the server For Example, objWscript.Run "notepad.exe", True, 1 But on the server side, there is no this process...
0
3384
by: private.anders | last post by:
Hi David! Really need assistance since I have been struggling with a problem long time now. I am running a web application on a Win 2003 Std (Active Directory). Everything works fine. I have...
2
10513
by: =?Utf-8?B?c3RldmV3YQ==?= | last post by:
Microsoft VBScript runtime error '800a0046' Permission denied ======================= Trying to find the solution is driving me crazy. Using IIS6 on Server2003 SBS Default website localhost...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7072
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.