PC Review


Reply
Thread Tools Rate Thread

Dir > Command working from Access with Windows 2000 but not Windo

 
 
RMCompute
Guest
Posts: n/a
 
      27th Jun 2009

I created a batch file called CreateFileofFiles.bat to create a file of files
in the operating system. It contains the following code:

Dir Test*.* > FileTable.txt

It runs successfully from the operating system and I can run it from MS
Access Windows 2000 using the shell command:

Shell ("CreateFileofFiles.bat")

When I try to run the exact same code from MS Access on another computer
which uses Windows XP, it does not create the file. Does anyone have any
ideas? Could it be something unrelated to the fact that it is a different
operating system. I know it is executing the batch command because I put in
a pause in the batch command and I see it pausing, but it will not create the
file. Any help would be greatly appreciated. Thanks in advance.

 
Reply With Quote
 
 
 
 
kc-mass
Guest
Posts: n/a
 
      27th Jun 2009

Try adding the path to the line in the batch file like
Dir Test*.* > c:\FileTable.txt
or do a search for FileTable.Txt

My guess would be that it is being created but not where you think.

Reagrads
Kevin


"RMCompute" <(E-Mail Removed)> wrote in message
news:5EB30CA3-B196-476E-923F-(E-Mail Removed)...
>I created a batch file called CreateFileofFiles.bat to create a file of
>files
> in the operating system. It contains the following code:
>
> Dir Test*.* > FileTable.txt
>
> It runs successfully from the operating system and I can run it from MS
> Access Windows 2000 using the shell command:
>
> Shell ("CreateFileofFiles.bat")
>
> When I try to run the exact same code from MS Access on another computer
> which uses Windows XP, it does not create the file. Does anyone have any
> ideas? Could it be something unrelated to the fact that it is a different
> operating system. I know it is executing the batch command because I put
> in
> a pause in the batch command and I see it pausing, but it will not create
> the
> file. Any help would be greatly appreciated. Thanks in advance.
>



 
Reply With Quote
 
RMCompute
Guest
Posts: n/a
 
      27th Jun 2009
Kevin,

Your guess was right on! It was creating the file in a directory a few
levels up. I coded all of the directory information in the batch file and it
worked fine.

Thank you.

"kc-mass" wrote:

> Try adding the path to the line in the batch file like
> Dir Test*.* > c:\FileTable.txt
> or do a search for FileTable.Txt
>
> My guess would be that it is being created but not where you think.
>
> Reagrads
> Kevin
>
>
> "RMCompute" <(E-Mail Removed)> wrote in message
> news:5EB30CA3-B196-476E-923F-(E-Mail Removed)...
> >I created a batch file called CreateFileofFiles.bat to create a file of
> >files
> > in the operating system. It contains the following code:
> >
> > Dir Test*.* > FileTable.txt
> >
> > It runs successfully from the operating system and I can run it from MS
> > Access Windows 2000 using the shell command:
> >
> > Shell ("CreateFileofFiles.bat")
> >
> > When I try to run the exact same code from MS Access on another computer
> > which uses Windows XP, it does not create the file. Does anyone have any
> > ideas? Could it be something unrelated to the fact that it is a different
> > operating system. I know it is executing the batch command because I put
> > in
> > a pause in the batch command and I see it pausing, but it will not create
> > the
> > file. Any help would be greatly appreciated. Thanks in advance.
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windo Will Not working Rob Windows XP WMI 1 3rd Feb 2009 10:30 AM
run out of memory error 2004 on CreateWorkSpace command with Windo =?Utf-8?B?UC4gU2NhcmFt?= Microsoft Access VBA Modules 5 14th Mar 2006 10:42 PM
Access 2000 XP OS - Format Command not working =?Utf-8?B?U01hYw==?= Microsoft Access Queries 3 18th Jan 2005 05:33 PM
At command in Windows 2000 not working ... Raju Microsoft Windows 2000 Networking 0 7th Sep 2003 09:34 AM
Microsoft Windows Common Control 5.0 (SP2) not working in Ms Access 2000 Lim Heng Sin Microsoft Access VBA Modules 0 21st Jul 2003 04:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:13 PM.