Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Advertise
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
Backups
»
opening a folder
opening a folder
Rate Topic
Display Mode
Topic Options
Author
Message
isabel-1114008
isabel-1114008
Posted Tuesday, September 15, 2009 1:23 AM
SSC Rookie
Group: General Forum Members
Last Login: Sunday, February 28, 2010 10:27 PM
Points: 45,
Visits: 135
Hi, is there any code in command prompt (which i can execute using xp_cmdshell ) to open a directory?
Post #787952
ps.
ps.
Posted Tuesday, September 15, 2009 8:37 AM
SSCommitted
Group: General Forum Members
Last Login: 2 days ago @ 2:04 AM
Points: 1,725,
Visits: 2,366
explorer.exe is the executable that you can run...
eg explorer c:\ will open the explorer with initial folder set to c:\
Its working in command prompt but not with xp_cmdshell..
Pradeep Singh
Post #788208
Steve Jones - Editor
Steve Jones - Editor
Posted Tuesday, September 15, 2009 8:52 AM
SSChampion
Group: Administrators
Last Login: 2 days ago @ 8:26 PM
Points: 23,166,
Visits: 6,925
What are you trying to accomplish? When you shell out, you aren't using your login, you're using a service account (or proxy) login. running explorer.exe won't get you anything.
Post #788228
isabel-1114008
isabel-1114008
Posted Tuesday, September 15, 2009 6:53 PM
SSC Rookie
Group: General Forum Members
Last Login: Sunday, February 28, 2010 10:27 PM
Points: 45,
Visits: 135
ps (9/15/2009)
explorer.exe is the executable that you can run...
eg explorer c:\ will open the explorer with initial folder set to c:\
Its working in command prompt but not with xp_cmdshell..
PS, i've tried using explorer c:\, and it worked in command prompt... but it made me sad that it doesn't work in xp_cmdshell...
I want to open a folder using xp_cmdshell because when i execute xcopy using xp_cmdshell to auto copy my backup file to another destination, xcopy only copies my backup file when the destination folder is open. when it's not open, my job for xcopy returns "succeeded" but it didn't really copied my backup file to the destination... is there anything you can suggest for my problem?
Post #788653
isabel-1114008
isabel-1114008
Posted Tuesday, September 15, 2009 6:55 PM
SSC Rookie
Group: General Forum Members
Last Login: Sunday, February 28, 2010 10:27 PM
Points: 45,
Visits: 135
ps (9/15/2009)
explorer.exe is the executable that you can run...
eg explorer c:\ will open the explorer with initial folder set to c:\
Its working in command prompt but not with xp_cmdshell..
PS, i've tried using explorer c:\, and it worked in command prompt... but it made me sad that it doesn't work in xp_cmdshell...
I want to open a folder using xp_cmdshell because when i execute xcopy using xp_cmdshell to auto copy my backup file to another destination, xcopy only copies my backup file when the destination folder is open. when it's not open, my job for xcopy returns "succeeded" but it didn't really copied my backup file to the destination... is there anything you can suggest for my problem?
Post #788655
isabel-1114008
isabel-1114008
Posted Tuesday, September 15, 2009 6:57 PM
SSC Rookie
Group: General Forum Members
Last Login: Sunday, February 28, 2010 10:27 PM
Points: 45,
Visits: 135
ps (9/15/2009)
explorer.exe is the executable that you can run...
eg explorer c:\ will open the explorer with initial folder set to c:\
Its working in command prompt but not with xp_cmdshell..
PS, i've tried using explorer c:\, and it worked in command prompt... but it made me sad that it doesn't work in xp_cmdshell...
I want to open a folder using xp_cmdshell because when i execute xcopy using xp_cmdshell to auto copy my backup file to another destination, xcopy only copies my backup file when the destination folder is open. when it's not open, my job for xcopy returns "succeeded" but it didn't really copied my backup file to the destination... is there anything you can suggest for my problem?
Post #788657
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2010 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use